我安装了SourceTree。
并已将 Beyond Compare 设置为 Diff 工具。
当我单击“未暂存文件”部分中已更改的文件时,然后按 Ctrl+D。从而推出 Beyond Compare。
它完美地展示了差异。
但是当我对另一个文件重复上述步骤时,我看到旧版本文件出现如下错误:
解决方法:我关闭Beyond Compare,然后在SourceTree中的文件上按Ctrl+D,效果很好。
我尝试在 SourceTree Options 中将可执行文件更改为 BComp.exe。 但这也没有解决问题。 请让我知道任何可能的解决方案。
SourceTree 的某些版本破坏了内置的 Beyond Compare 集成。编辑 .gitconfig 文件可能会解决该问题。
进入:C:\Program Files\Git\mingw64 tc
编辑gitconfig文件并添加
[difftool "sourcetree"]
cmd = 'C:/Program Files/Beyond Compare 4/bcomp.exe' $LOCAL $REMOTE