I have an error exactly as it's on the picture.
Tried various settings, googled, reinstalled. Git pull doesn't work in TortoiseGit, I can commit and push, though.
I have ssh client in network tab. What else can I try?
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.
来源:https://stackoverflow.com/questions/48608113/git-exe-pull-error-cannot-spawn-git-invalid-argument