开发者

"fatal" when trying to clone Git repository within Cygwin

I have another problem regarding Git. This time I thoroughly searched Google and Stack Overflow and I couldn't find any reasonable solution. I am trying to clone a repository using the command git clone "http://github.com/scottgonzalez/node-chat" and I am getting this error:

Cloning into node-chat...

fatal: http://github.com/scottgonzalez/node-chat/info/refs not found: did you run git update-server-info on the server?

What can I do to make the clone work? I tried running various things like git update-server-info and git update-server-info "http://github.com/scott开发者_如何学Gogonzalez/node-chat" and none of them seemed to work.

Can anyone help me with this? Some day, I may learn how to use Git properly, but for now I just need to get this thing working.


You need to use the .git extension for HTTP clones:

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

As you can see, https://github.com/scottgonzalez/node-chat.git/info/refs does exist, but https://github.com/scottgonzalez/node-chat/info/refs does not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜