I have installed an SSH server on Windows Server 2008, and initialized a git repo.
I'd like to clone this on my dev environment, so that I can commit and push changes.
Having trouble figuring out the path; here's what I see in every example:
home$ git clone ssh://myuser@server/path/to/repository
That's great and all, but I don't understand how to use that for windows. This seems wrong to me:
home$ git clone ssh://myuser@server/Program Files (x86)/Apache/Apache/htdocs/myrepo
How does the path really work in windows?
If you have followed the tutorial Setting up a Msysgit Server with copSSH on Windows, I confirm your "
Program Files (x86)
" can work.See for instance SO answer "Git clone using ssh - can't find repository":
You will find other path examples in "How to stop git via ssh on windows from resolving the wrong path?".
Using Openssh rather than plink.exe is easier though: see "Setting up a Git server with Windows Server 2008".
As the OP JohnZ mentions in the comments: