git-diff - 显示提交,提交和工作树之间的更改等

时间:2015-05-14 20:12:33

标签: git git-diff

git help diff它说:

git-diff - Show changes between commits, commit and working tree, etc

我理解changes between commits但不理解changes between commits, commitchanges between commits, commit and working tree

有人可以澄清吗?

1 个答案:

答案 0 :(得分:2)

好吧,使用git-diff,您可以显示更改between commits

git diff <commit> <commit>

between commit and working tree

git diff <commit>

还可以看到更多其他选项here