Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot spawn C:\ProgramFiles(x86)\Git\cmd\: No such file or directory.

Tags:

git-clone

ssh

I have a problem when I'm trying to clone with git on cygwin. My GIT_SSH is

 "C:\ProgramFiles(x86)\Git\bin\".

When I try to clone, here is the result:

$ git clone ssh://*****/home/local/git/prestashop myDirectory
Cloning into 'myDirectory'...
error: cannot spawn C:\ProgramFiles(x86)\Git\cmd\: No such file or directory
fatal: unable to fork

I've seen many question related to that problem but I can't find answers to solve this problem. All ideas welcome ! Thanks !

like image 909
Matheus Avatar asked May 20 '14 07:05

Matheus


1 Answers

Following Git with SSH on Windows, you see that GIT_SSH should reference the ssh executable, not just its path:

(old msysgit)
set GIT_SSH=C:\Program Files (x86)\Git\bin\ssh.exe

(new 2015 git for Windows)
set GIT_SSH=C:\Program Files\Git\usr\bin\ssh.exe
like image 194
VonC Avatar answered Oct 22 '22 12:10

VonC