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

时间:2013-09-01 10:55:34

标签: git github private

我正在尝试使用Ubuntu 13.04从GitHub私有仓库克隆我的项目。

我的错误始终如下

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

我也尝试了以下命令,但没有区别

git config --global http.postBuffer 524288000

我有什么可能遗失的吗?顺便说一句,我能够在Windows中毫无问题地克隆。

2 个答案:

答案 0 :(得分:1)

首先检查问题是否仍然存在,因为今天早上GitHub存在一些问题 见其status history

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

如果确实存在,请检查您是否可以在不同的计算机/操作系统上重现它 如this issue所示,如果这是因为某些内容很大,请使用shallow clone对其进行测试。

答案 1 :(得分:0)

我确实认为这是由太大的存储库引起的(因为我认为在尝试检出(即克隆)大于1 GB的存储库时遇到了相同的错误)。伊舍伍德()在StackOverflow: Pull large repository (more than 1GB size) over http fail

中也提出了这一怀疑。

因此,本文是我在前面提到的链接中发布的解决方案的副本。

  1. git clone --depth 1您的URL至克隆./
  2. git fetch --unshallow
  3. git pull

有关1.的含义(即浅表克隆)的更多信息,请参见StackOverflow: Is it safe to shallow clone with --depth 1, create commits, and pull updates again?

有关2的含义的更多信息,请参见StackOverflow: https://stackoverflow.com/questions/6802145/how-to-convert-a-git-shallow-clone-to-a-full-clone

关于3:我认为这只是仔细检查。至少对我而言,没有带来任何更新。

相关问题