【问题标题】:Git clone using ssh - can't find repository使用 ssh 克隆 Git - 找不到存储库
【发布时间】:2011-01-26 20:15:58
【问题描述】:

我正在尝试使用 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/

有什么线索吗?

【问题讨论】:

    标签: git ssh msysgit


    【解决方案1】:

    我走错路了……

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

    工作。

    【讨论】: