我使用的是Windows10,我已经将git配置为使用Araxis Merge作为外部差异工具。
当我做一个 git difftool --cached 一切顺利,除非我有超过9个文件。一旦我关闭第9个差异的窗口,将不再显示其他差异,并且在我的控制台窗口中,我得到:
git difftool --cached
error: cannot spawn ¸°s?: No such file or directory fatal: external diff died, stopping at Data/Properties/Resources.Designer.cs
只要暂存的文件超过9个,就会在多个存储库中发生此错误。
如果我做一个 git diff --cached
git diff --cached
git version 2.20.1.windows.1
同样的问题也存在于中国 git difftool 在Windows7上。无法比较第10个文件:
git difftool
error: cannot spawn i?: No such file or directory fatal: external diff died, stopping at ...
我发现了下一个Git for Windows版本报告并解决的问题:
Unable to Use difftool on More than 8 Files
difftool cannot find file, random characters in pathname.