git diff

Posted 活到老学到老

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git diff相关的知识,希望对你有一定的参考价值。

git diff官方文档:https://git-scm.com/docs/git-diff

 

比较常用:

git diff ..<branch name>

  查看与该分支对比有哪些不同

git diff ..<branch name> --stat

  查看与该分支对比有哪些文件不同

以上是关于git diff的主要内容,如果未能解决你的问题,请参考以下文章

git diff 与 git diff -- cached 区别

git diff 配置 meld diff

git diff

gitlog和diff区别

git diff 结果分析

`git diff --patience` 和 `git diff --histogram` 有啥区别?