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

问题描述 投票:2回答:2

我正在尝试使用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中毫无问题地进行克隆。

git github private
2个回答
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进行测试。


0
投票

我确实认为这是由太大的存储库引起的(因为我认为尝试检出(即克隆)大于1 GB的存储库时遇到相同的错误。) [[isherwood在StackOverflow: Pull large repository (more than 1GB size) over http fail]中也提出了怀疑。因此,本文是我在上述链接中发布的解决方案的副本。

    git clone --depth 1您的URL克隆./
  1. git fetch --unshallow
  2. git pull
  3. 有关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:我认为,这只是仔细检查。至少对我而言,没有带来任何更新。

© www.soinside.com 2019 - 2024. All rights reserved.