看看git help diff
它说:
git-diff - Show changes between commits, commit and working tree, etc
我理解提交之间的更改
,但不理解提交、提交之间的更改
或提交、提交和工作树之间的更改
。
谁能解释一下吗?
最佳答案
好吧,使用git-diff
,您可以显示提交之间的更改
:
git diff <commit> <commit>
或者在提交和工作树之间
:
git diff <commit>
还有更多其他选项,如 here 所示。 .
关于git-diff - 显示提交、提交和工作树等之间的更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30246480/