简体   繁体   English

GitHub 克隆错误:无法克隆出现 EOF 错误

[英]GitHub Clone Error: Cannot clone with EOF error

I am trying to clone my project from GitHub private repo using Ubuntu 13.04.我正在尝试使用 Ubuntu 13.04 从 GitHub 私有存储库克隆我的项目。

I am getting error as below all the time我一直收到如下错误

error: RPC failed; result=18, HTTP code = 200| 17 KiB/s      
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: recursion detected in die handler

I have tried the following command as well but not difference我也尝试过以下命令但没有区别

git config --global http.postBuffer 524288000

Is there anything i may be missing?有什么我可能会遗漏的吗? Btw, I am able to clone without problem in windows.顺便说一句,我可以在 Windows 中毫无问题地进行克隆。

First check if the issue persists, because there were some issues this morning with GitHub.首先检查问题是否仍然存在,因为今天早上 GitHub 出现了一些问题。
See its status history :查看其状态历史记录

Today
6:52 UTC Everything operating normally.
6:50 UTC Some GitHub pages are again unavailable. We are continuing to investigate. 

If it does persists, check also if you can reproduce it on different computer/OS.如果它仍然存在,请检查是否可以在不同的计算机/操作系统上重现它。
As shown in this issue , if this really is because of some huge content, then test it with a shallow clone .本期所示,如果真的是因为一些大内容,那就用浅克隆测试一下。

I do believe that this is caused by a repository that is too large (because I believe I got the same error when I tried to check out (ie, clone) a repository that was larger than 1 GB.).我确实相信这是由太大的存储库引起的(因为我相信我在尝试检出(即克隆)大于 1 GB 的存储库时遇到了同样的错误。)。 That suspicion was also raised by isherwood in StackOverflow : Pull large repository (more than 1GB size) over http fail StackOverflow 中isherwood也提出了这种怀疑:Pull large repository (more than 1GB size) over http fail

So, this post here is a copy of the solution I've posted in the before-mentioned link.所以,这里的这篇文章是我在前面提到的链接中发布的解决方案的副本。

  1. git clone --depth 1 YOUR-URL-TO-CLONE ./ git clone --depth 1 你的 URL-TO-CLONE ./
  2. git fetch --unshallow git fetch --unshallow
  3. git pull

For more information about the meaning of 1., ie, a shallow clone, see StackOverflow: Is it safe to shallow clone with --depth 1, create commits, and pull updates again?有关 1. 含义的更多信息,即浅克隆,请参阅StackOverflow:使用 --depth 1 进行浅克隆、创建提交并再次拉取更新是否安全?

For more information about the meaning of 2., see StackOverflow : https://stackoverflow.com/questions/6802145/how-to-convert-a-git-shallow-clone-to-a-full-clone .有关 2. 含义的更多信息,请参阅StackOverflow :https: //stackoverflow.com/questions/6802145/how-to-convert-a-git-shallow-clone-to-a-full-clone

Regarding 3: This is, I believe, just to double-check.关于 3:我相信,这只是为了仔细检查。 At least for me that did not bring me any updates.至少对我来说没有给我带来任何更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM