git 查看文件差异

  1. 列出文件状态
git status
  1. 查看[修改文件]与[本地仓库文件]差异
git diff [文件名]
  1. 查看[本地仓库文件]与[远程仓库文件]差异
git diff --cached [文件名]

你可能感兴趣的:(git 查看文件差异)