git 无法使用 TortoiseGit 检查差异:“致命:空字符串不是有效的路径规范”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48452665/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to check diffs with TortoiseGit: "fatal: empty string is not a valid pathspec"
提问by zeflex
Currently, I did a re-installation of my windows 10. I also installed Git and TortoiseGit.
目前,我重新安装了 Windows 10。我还安装了 Git 和 TortoiseGit。
Right now when I try to check diffs I have theses two errors in a window:
现在,当我尝试检查差异时,我在窗口中有两个错误:
fatal: empty string is not a valid pathspec, please use . instead if you meant to match all paths
致命:空字符串不是有效的路径规范,请使用 . 相反,如果您打算匹配所有路径
I click ok, then the other window error is:
我点击确定,然后另一个窗口错误是:
Failed to get UnRev file list fatal: empty string is not a valid pathspec, please use . instead if you meant to match all paths
无法获得 UnRev 文件列表致命:空字符串不是有效的路径规范,请使用 . 相反,如果您打算匹配所有路径
I click ok and it does not show me any errors in the "working tree" diffs.
我单击确定,它没有显示“工作树”差异中的任何错误。
Git.exe is in :
Git.exe 位于:
C:\Program Files\Git\bin
C:\Program Files\Git\bin
And the path is set correctly in the General menu (settings) of Tortoisegit.
并且在 Tortoisegit 的 General 菜单(设置)中正确设置了路径。
Anyone know how to fix this issue ? Thanks.
有谁知道如何解决这个问题?谢谢。
回答by MrTux
TortoiseGit 2.5 is not yet fully compatible to Git >= 2.16. See https://TortoiseGit.organd the corresponding bug report: https://TortoiseGit.org/issue/3138
TortoiseGit 2.5 尚未完全兼容 Git >= 2.16。请参阅https://TortoiseGit.org和相应的错误报告:https: //TortoiseGit.org/issue/3138
Update:Use the latest stable version of TortoiseGit: https://tortoisegit.org/download/
更新:使用最新稳定版 TortoiseGit:https: //tortoisegit.org/download/