尝试在Cygwin中克隆Git存储库时“致命”

时间:2011-01-11 18:18:42

标签: git https cygwin github

我有另外一个关于Git的问题。这次我彻底搜索了Google和Stack Overflow,我找不到任何合理的解决方案。我正在尝试使用命令git clone "http://github.com/scottgonzalez/node-chat"克隆存储库,我收到此错误:

  

克隆到节点聊天...

     

致命:http://github.com/scottgonzalez/node-chat/info/refs未找到:您是否在服务器上运行了git update-server-info?

我可以做些什么来使克隆工作?我尝试过运行git update-server-infogit update-server-info "http://github.com/scottgonzalez/node-chat"等各种内容,但似乎都没有。

任何人都可以帮我吗?有一天,我可能会学习如何正确使用Git,但是现在我只需要让这个东西工作。

1 个答案:

答案 0 :(得分:2)

您需要对HTTP克隆使用.git扩展名:

https://github.com/scottgonzalez/node-chat.git

如您所见,https://github.com/scottgonzalez/node-chat.git/info/refs确实存在,但https://github.com/scottgonzalez/node-chat/info/refs没有。