git.exe pull error: cannot spawn git: Invalid argument

◇◆丶佛笑我妖孽 提交于 2019-12-03 22:52:08

Update:

Git for Windows 2.16.1(4) is out and that should fix this issue: https://github.com/git-for-windows/git/releases


Old answer:

This is a known issue in Git for Windows 2.16.1(2) and 2.16.1(3): https://github.com/git-for-windows/git/issues/1481

Only workaround is to use Git for Windows 2.16.1 (Download) (or older; 2.16.0 has other critical issues: TortoiseGit revert failed - unable to revert local changes).

Just for the notes, bugreport in TortoiseGit: https://gitlab.com/tortoisegit/tortoisegit/issues/3156

PS: For Git for Windows >= 2.16 you need at least TortoiseGit 2.5.7 (cf. https://stackoverflow.com/a/48457419/3906760).

徐敬尧

I rolled back to the version 2.16.0, the problem has disappeared. Git for Windows 2.16.0(2)

have ssh client in network tab

But your remote repo URL is https://github.com/toouur/programming_test_repo, an https URL, so SSH it not involved. At all.

Make sure the settings for TortoiseGit does mention the path to git.exe, not git.exe itself.
For instance: C:\Program Files\Git\bin, not C:\Program Files\Git\bin\git.exe

You can reference the latest Git for Windows, PortableGit-2.16.1.2-64-bit.7z.exe, uncompressed anywhere you want.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!