1. git diff 的使用

git diff后者对前者的修改

1.1. 比较两个分支

bell分支相对master分支的修改

$ git diff origin/master origin/bell

1.2. 比较两个tag

$ git diff 0.0.1 0.0.2

0.0.1,0.0.2为tag

1.3. 工作目录与上次提交时之间的差别

$ git diff HEAD

1.4. 用其它工具查看 diff

git difftool

1.5. Reference

results matching ""

    No results matching ""