无法使用 TortoiseGit 检查差异:"fatal: empty string is not a valid pathspec"

Unable to check diffs with TortoiseGit: "fatal: empty string is not a valid pathspec"

目前,我重新安装了 windows 10。我还安装了 Git 和 TortoiseGit。

现在,当我尝试检查差异时,我在 window:

中遇到了两个错误

fatal: empty string is not a valid pathspec, please use . instead if you meant to match all paths

我点击确定,然后另一个window错误是:

Failed to get UnRev file list fatal: empty string is not a valid pathspec, please use . instead if you meant to match all paths

我单击“确定”,它没有显示 "working tree" 差异中的任何错误。

Git.exe 在:

C:\Program Files\Git\bin

并且在 Tortoisegit 的常规菜单(设置)中正确设置了路径。

有人知道如何解决这个问题吗?谢谢

TortoiseGit 2.5 尚未完全兼容 Git >= 2.16。参见 https://TortoiseGit.org and the corresponding bug report: https://TortoiseGit.org/issue/3138

更新:使用最新稳定版TortoiseGit:https://tortoisegit.org/download/