我有三个本地提交的 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
代表补丁(patch),它将显示每个提交的统一差异(unified diff)。 - John Szakmeister