两个提交或分支之间的区别
查看两个分支之间的区别
git diff <branch1>..<branch2>
查看两个分支之间的区别
git diff <commitId1>..<commitId2>
使用当前分支查看差异
git diff <branch/commitId>
查看更改摘要
git diff --stat <branch/commitId>
查看在某次提交后更改的文件
git diff --name-only <commitId>
查看与分支不同的文件
git diff --name-only <branchName>
在特定提交后查看文件夹中更改的文件
git diff --name-only <commitId> <folder_path>