I am having a hard time getting Github (+Netbeans to work).
I want to use ssh with git (on Windows 7) to, e.g., commit or clone a project, but I keep getting this error message :
$ git clone [email protected]:USER/PROJECTNAME.git
error: cannot spawn C:Program Files (x86)Gitinssh.exe: No such file or directory
fatal: unable to fork
Note: For now, my GIT_SSH
environment variable is pointing to C:Program Files (x86)Gitinssh.exe
, but I have also tried C:Program Files (x86)Gitin
, erasing it entirely, pointing to putty's/plink's folder, and pointing to their executables, but still the same message.
When I test the connection everything works fine:
$ ssh -T [email protected]
Hi USER! You've successfully authenticated, but GitHub does not provide shell access.
What am I doing wrong? Does it make a difference if I do the git init
in the directory in the first place?
EDIT:
This didn't help:
setting GIT_SSH
to plink.exe
and adding plink's path to PATH
**EDIT 2 **
result of command with GIT_TRACE=2
$ GIT_TRACE=2 git clone [email protected]:XXX/AffableBean
trace: built-in: git 'clone' '[email protected]:XXX/AffableBean'
Cloning into 'AffableBean'...
trace: run_command: 'Plink.exe' '-batch' '[email protected]' 'git-upload-pack '''XXX/AffableBean''''
error: cannot spawn Plink.exe: No such file or directory
fatal: unable to fork
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…