1

My diff tool works for my local change such as git difftool -x mytool.exe, how could I use the same diff tool for committed change? I tried git show, git log, but cannot find such option.

4

1 回答 1

3

我经常使用这个命令来查看最近提交引入的图形差异:

 git difftool HEAD~

(这假设没有进行本地更改。如果是,您将看到此差异中的本地更改加起来)。

您还可以指定任何特定的提交或分支,例如

 git difftool abc123~..abc123
于 2012-12-10T16:59:35.890 回答