【发布时间】:2012-09-17 13:41:24
【问题描述】:
我在本地提交了三个 Git 提交,但尚未推送到 GitHub。我想查看所有三个提交的更改/差异,如何查看所有差异?
我试过了:git log --branches --not --remotes
这显示了三个提交,但不是每个提交的所有差异/更改。
commit c08fbb72ae6a06e8b2ff3dbbb96fb555a43f4136
Author: Justin <justin@mydomain.com>
Date: Mon Sep 10 18:17:02 2012 -0700
Updated order of requires in Requires.php
commit 041fe19a48269a8aea2ccf90f53568893d4e0158
Author: Justin <justin@mydomain.com>
Date: Mon Sep 10 17:56:42 2012 -0700
Checking for app.config.php in Requires.php
commit 61c103a8a122bcde2311d081a8340ee1dd71997c
Author: Justin <justin@mydomain.com>
Date: Mon Sep 10 17:42:20 2012 -0700
Version bump 0.4.0. See CHANGELOG.md
感谢您的帮助。
【问题讨论】:
-
如果您想查看每次提交的差异,请使用
git log -p --branches --not --remotes。-p代表补丁。它会显示每个提交的统一差异。
标签: git git-commit git-log