Git克隆导致:“无法获取远程存储库信息。”

时间:2012-09-13 02:18:05

标签: git github clone

当我ssh -v git@github.com时,它验证正常。

然而,当我git clone https://github.com/myusername/project.git时,我得到了:

Initialized empty Git repository in /home/webapps/myproject/.git/
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?

我已经三次检查我正确输入了网址。此外,我是否使用git:// vs http://协议并不重要。有什么想法吗?

2 个答案:

答案 0 :(得分:3)

git clone git://github.com/myusername/project.git

应该有所帮助。

答案 1 :(得分:0)

尝试使用SSH协议(如果您未指定协议,也会发生这种情况):

git clone git@github.com:username/project.git

同时仔细检查您是否正确输入了用户名和项目(如果您尝试克隆现有项目,则已经分叉了存储库)。

相关问题