看git help diff
它说:
git-diff - Show changes between commits, commit and working tree, etc
我理解changes between commits
但不理解changes between commits, commit
或changes between commits, commit and working tree
。
有人可以澄清吗?
答案 0 :(得分:2)
好吧,使用git-diff
,您可以显示更改between commits
:
git diff <commit> <commit>
或between commit and working tree
:
git diff <commit>
还可以看到更多其他选项here。