“致命的”当尝试在 Cygwin 中克隆 Git 存储库时
我还有一个关于 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-info 和 git update-server-info "http://github.com/scottgonzalez/node-chat" ,但没有其中一些似乎有效。
谁能帮我解决这个问题吗?有一天,我可能会学会如何正确使用 Git,但现在我只需要让它工作起来。
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/scottgonzalez/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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要对 HTTP 克隆使用
.git
扩展名:如您所见,https://github.com/scottgonzalez/node-chat.git/info/refs 确实存在,但是https://github.com/scottgonzalez/node-chat/info/refs 没有。
You need to use the
.git
extension for HTTP clones: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.