I have the following setup:
s:/git/java/myproj.git with
git --bare init
s:/_java/myproj/.git with
git init, git add .
I added
git remote add origin s:/git/java/myproj.git
and tried to do:
git push origin master
And am getting:
error: cannot run ssh: No such file or directory
fatal: unable to fork
Why does git try to use ssh? I think I read that git accepts local paths on any command that specifies url.
Fixed: it has to do with a requirement to use cygwin drive path.
Cygwin doesn’t understand drive letters with colons, so ssh thinks you are trying to contact a host named
s(withs:/git/...). Instead, try:The key is to use something that looks like a Unix path name, rather than a hostname:pathname pair.