Git远程克隆

时间:2011-04-12 20:07:22

标签: git git-svn

我在远程服务器上使用git repo。我有ssh访问此服务器。当我尝试使用命令git clone ssh://nick@ip_addres:9022/repo.git克隆repo时,我无法克隆它。出现的错误是 git clone ssh://nick@ip_address:9022/repo.git Cloning into repo... fatal: '/repo.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly

2 个答案:

答案 0 :(得分:1)

如果您使用名称login登录该计算机并执行cd /repo.git,您会得到什么?

您可能错过了存储库的路径......

答案 1 :(得分:1)

只是一个(合法;))猜测

git clone ssh://nick@ip_adress:9022/~nick/repo.git

这是@Matthieu回答的结果。我不认为,服务器的根目录中确实有一个目录repo.git。这个答案预计,回购将在'尼克的家中。

相关问题