git.exe拉错误:无法生成git:参数无效

问题描述 投票:16回答:3

我的错误与图片上的错误完全相同。

enter image description here

尝试各种设置,谷歌搜索,重新安装。 Git pull在TortoiseGit中不起作用,但我可以提交并推送。

我在网络选项卡中有ssh客户端。我还能尝试什么?

git tortoisegit
3个回答
13
投票

更新:

Git for Windows 2.16.1(4)已经出来,应该解决这个问题:https://github.com/git-for-windows/git/releases


老答案:

这是Git for Windows 2.16.1(2)和2.16.1(3)中的一个已知问题:https://github.com/git-for-windows/git/issues/1481

唯一的解决方法是使用Git for Windows 2.16.1(Download)(或更早版本; 2.16.0还有其他关键问题:TortoiseGit revert failed - unable to revert local changes)。

只是为了笔记,TortoiseGit中的bug报告:https://gitlab.com/tortoisegit/tortoisegit/issues/3156

PS:对于Windows的Git> = 2.16,你至少需要TortoiseGit 2.5.7(参见https://stackoverflow.com/a/48457419/3906760)。


5
投票

我回滚到版本2.16.0,问题已经消失。 Git for Windows 2.16.0(2)


0
投票

在网络选项卡中有ssh客户端

但您的远程repo URL是https://github.com/toouur/programming_test_repo,一个https URL,所以它不涉及SSH。完全没有。

确保TortoiseGit的设置确实提到了git.exe的路径,而不是git.exe本身。 例如:C:\Program Files\Git\bin,而不是C:\Program Files\Git\bin\git.exe

您可以在任何地方参考latest Git for WindowsPortableGit-2.16.1.2-64-bit.7z.exe,未压缩。

© www.soinside.com 2019 - 2024. All rights reserved.