代码之家  ›  专栏  ›  技术社区  ›  sixeyes

git difftool——缓存在第九个文件之后停止工作

  •  1
  • sixeyes  · 技术社区  · 7 年前

    我使用的是Windows10,我已经将git配置为使用Araxis Merge作为外部差异工具。

    当我做一个 git difftool --cached 一切顺利,除非我有超过9个文件。一旦我关闭第9个差异的窗口,将不再显示其他差异,并且在我的控制台窗口中,我得到:

    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 version 2.20.1.windows.1
    
    1 回复  |  直到 7 年前
        1
  •  0
  •   anb0s    7 年前

    同样的问题也存在于中国 git difftool 在Windows7上。无法比较第10个文件:

    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.

    推荐文章