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

标签 git git-diff

看看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/

相关文章:

ruby-on-rails - 如何让应用程序使用 Ruby on Rails 的本地分支版本

git - 如何使 git diff 显示与 github 的 pull request diff 相同的结果?

git diff 只输出文件名

git - 迭代 git diff --name-only 的结果时如何处理文件名中的空格

git rebase : fixup commits but use latest message

windows - Git bash 无法访问新机器上的主目录

Git 显示整个文件的变化

Git 错误 : ! [rejected] master -> master (non-fast-forward)

git - 致命的 : unable to access 'https://github.com/xxx' : LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github. com:443