Error: C: \ Path To \ TortoiseGit \ Bin cannot occur: no such file or directory

Trying to make a selection from the source:

git remote update 

Receive error message

 Error: Cannot Spawn C:\Path To\TortoiseGit\Bin: No such file or directory fatal: unable to fork Error: Could not fetch origin 

Why is this happening? Also have a fix?

+11
source share
6 answers

This blog seems to be the same issue as yours:

http://www.techneiq.com/2012/08/error-cannot-spawn-cprogram.html

And this problem on msysgit also points to the same error:

https://code.google.com/p/msysgit/issues/detail?id=313

Find out what your environmental variable GIT_SSH points to, and if there is a space in this path. Perhaps reinstalling TortoiseGit will solve it. (Otherwise, I really recommend GitExtensions )

+9
source

For me, the answer was to remove the double quotes "c: \ Program Files (x86) \ PuTTY \ plink.exe" from the GIT_SSH environment variable.

+13
source

I ran into this problem when I needed to uninstall and install TortoiseGit and Git. Both were previously installed on C: \, but later I installed them on F :. Therefore, after reinstalling, when I tried to pull out the repositories, it gave me the following error when using from the context menu

Error: C: \ Program Files \ TortoiseGit \ bin \ TortoisePlink.exe cannot appear: There is no such file or directory

After a little research, I went to Settings-> Network and updated the SSH client path from C: ... to F: ... and then was resolved.

+8
source

Set the GIT_SSH environment GIT_SSH to

 %ProgramFiles(x86)%\PuTTY\plink.exe 

or

 %ProgramFiles%\PuTTY\plink.exe 
+6
source

You can simply find a copy of the directory at the location that the error message indicates.

0
source

For me, for TortoiseGit> Settings> Network> SSH, I had to install it just ssh.exe instead of the full path to ssh.

0
source

All Articles