使用SSH的Git克隆 - 无法找到存储库
问题描述:
我试图在Windows 7上使用CopSsh,PuTTY和msysgit设置Git服务器。
I'm trying to setup a Git server on Windows 7, using CopSsh, PuTTY and msysgit. I'm having problems cloning a repository using ssh.
如果我使用常规目录路径,它可以工作:
If I use a regular directory path, it works:
$ git clone ~/vc/git/depot/test.git/ /c/dev/es/app
Initialized empty Git repository in c:/dev/es/app/.git/
warning: You appear to have cloned an empty repository.
,不起作用。
Ssh, doesn't work. I've tried an different paths without success.
$ git clone ssh://steve@test:4837/~/vc/git/depot/test.git/ /c/dev/es/app
Initialized empty Git repository in c:/dev/es/app/.git/
fatal: '~/vc/git/depot/eastApp.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
我按照以下说明操作: http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/
I followed the instructions from here: http://www.timdavis.com.au/git/setting-up-a-msysgit-server-with-copssh-on-windows/
任何线索?
答
我弄错了路径...
git clone "ssh://steve@test:4837/Program Files (x86)/ICW/home/steve/vc/git/depo/test.git"
/c/dev/es/app/
有效。