9

我正在尝试使用 CopSsh、PuTTY 和 msysgit 在 Windows 7 上设置 Git 服务器。我在使用 ssh 克隆存储库时遇到问题。

如果我使用常规目录路径,它可以工作:

$ 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,不起作用。我尝试了不同的路径但没有成功。

$ 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/

有什么线索吗?

4

1 回答 1

10

我走错路了...

git clone "ssh://steve@test:4837/Program Files (x86)/ICW/home/steve/vc/git/depo/test.git" 
 /c/dev/es/app/

工作。

于 2010-03-12T18:40:18.507 回答