为了与互联网上发布的许多解决方案保持一致,我安装了 KDiff3 并进行.gitconfig
了如下修改以使用它。尽管如此,当我git diff HEAD^ HEAD
在存储库中运行以测试它时,我得到了默认工具执行的差异。我在 Windows7-64 上运行 cygwin git。谁能解释为什么不调用KDiff3?
[diff]
tool = kdiff3
[merge]
tool = kdiff3
[difftool "kdiff3"]
path = \"D:/Program Files (x86)/KDiff3/kdiff3.exe\"
keepBackup = false
trustExitCode = false
[mergetool "kdiff3"]
path = \"D:/Program Files (x86)/KDiff3/kdiff3.exe\"
keepBackup = false
trustExitCode = false