I can do ssh windowsmachine
from Linux to access a Windows machine, and from there I can git init --bare foo.git
, telling me Initialized empty Git repository in C:/Users/unhammer/foo.git/
but how do I clone that from the unix side?
$ git clone ssh://windowsmachine:foo.git
Cloning into 'foo'...
fatal: No path specified. See 'man git-pull' for valid url syntax
$ git clone ssh://windowsmachine:C:\\Users\\unhammer\\foo.git
Cloning into '\Users\unhammer\foo'...
fatal: No path specified. See 'man git-pull' for valid url syntax
$ git clone ssh://windowsmachine:/foo.git
Cloning into 'foo'...
fatal: ''/foo.git'' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
and similar messages for /C:/Users/unhammer/foo.git
and
/C/Users/unhammer/foo.git
and /Users/unhammer/foo.git
.
Note the double single-quotes:
fatal: ''/Users/unhammer/foo.git'' does not appear to be a git repository
This doesn't happen when I try to git clone linuxmachine:/some/path/that/does/not/exist.git
, then git uses single single-quotes. (Maybe that's the issue, git-for-windows or something applying extra quotes?)