git clone: fatal: 远端意外挂断
我刚刚安装了 Git,渴望第一次使用它来“克隆”一个项目,但是当我尝试第一个命令时,我收到了这个可怕的错误消息:
致命:远端挂断 没想到
我试图运行的命令是:
git clone git://android.git.kernel.org/projects/platform/packages/apps/Browser.git/tree
知道为什么我会失败吗?
顺便说一句,我在 Windows XP SP3 32 位上使用最新的 cygwin 1.7.8 git 1.7.4。
I just installed Git, eager to use it for the first time for "cloning" a project, but as soon as I tried my first ever command I receive this dreaded error message:
fatal: The remote end hung up
unexpectedly
The command I was trying to run was:
git clone git://android.git.kernel.org/projects/platform/packages/apps/Browser.git/tree
Any idea why I am getting this fail?
BTW, I am using the latest cygwin 1.7.8 git 1.7.4 on Windows XP SP3 32-bit.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你应该做的是:
输出:
What you should do instead is:
Outputs:
尝试
导出 CYGWIN=binmode
。我遇到过这个问题或非常类似的问题。 Cygwin 有时也有其问题。它并不完美。即使在这个修复之后。您需要在每次登录时都进行导出。考虑将其放入 /etc/profile 中。Try
export CYGWIN=binmode
. I've run into that or a very similar problem. Cygwin sometimes has its issues. It's not perfect. Even after this fix. You need to do that export every login. Consider putting it in /etc/profile.我遇到了类似的问题并通过回收路由器解决了它。我想就我而言,这是某种连接问题。
I had a similar problem and solved it by recycling my router. I guess in my case it was some sort of connectivity problem.