本文介绍了使用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
我按照以下说明操作:
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/
有效。
这篇关于使用SSH的Git克隆 - 无法找到存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!