git clone: fatal: 远端意外挂断

发布于 2024-10-21 06:09:45 字数 335 浏览 2 评论 0原文

我刚刚安装了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

↘人皮目录ツ 2024-10-28 06:09:45

你应该做的是:

git clone git://android.git.kernel.org/platform/packages/apps/Browser.git

输出

Cloning into Browser...
remote: Counting objects: 10361, done.
remote: Compressing objects: 100% (2394/2394), done.
remote: Total 10361 (delta 5024), reused 10254 (delta 4943)
Receiving objects: 100% (10361/10361), 4.67 MiB | 4.91 MiB/s, done.
Resolving deltas: 100% (5024/5024), done.

What you should do instead is:

git clone git://android.git.kernel.org/platform/packages/apps/Browser.git

Outputs:

Cloning into Browser...
remote: Counting objects: 10361, done.
remote: Compressing objects: 100% (2394/2394), done.
remote: Total 10361 (delta 5024), reused 10254 (delta 4943)
Receiving objects: 100% (10361/10361), 4.67 MiB | 4.91 MiB/s, done.
Resolving deltas: 100% (5024/5024), done.
撩心不撩汉 2024-10-28 06:09:45

尝试导出 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.

格子衫的從容 2024-10-28 06:09:45

我遇到了类似的问题并通过回收路由器解决了它。我想就我而言,这是某种连接问题。

I had a similar problem and solved it by recycling my router. I guess in my case it was some sort of connectivity problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文