2013-08-31 71 views
5

我试图克隆库,并开始使用它,所以我用胶带ü混帐克隆致命错误:RPC失败,该远端挂了意外,早EOF

$ git clone https://github.com/VirtuOR/OpenTRILL 

克隆开始

Cloning into 'OpenTRILL'... 
remote: Counting objects: 46419, done. 
remote: Compressing objects: 100% (42140/42140), done. 

,但它与下面的错误结束

error: RPC failed; result=18, HTTP code = 200MiB | 55 KiB/s  
fatal: The remote end hung up unexpectedly 
fatal: early EOF 
fatal: index-pack failed 

任何帮助,请

回答

-1

请参阅此链接,它可能会帮助你。 http://hackerslab.eu/blog/2012/02/git-early-eof-fatal-error/

+1

问题仍然存在 – asma

+3

并且链接中断 – ideasman42

+0

使用https://web.archive.org/web/20130713101512/http://hackerslab.eu/blog/2012/02/git-early-eof-fatal -error我发现帖子建议在客户端尝试'git config --global core.compression -1'和'git config --add core.compression -1' –

0

确保问题仍然存在,因为GitHub今天有一些问题。
看到它的GitHub的状态历史记录页:

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

我能克隆你的回购(刚才)没有任何毛刺,但是在Windows上,与git1.8.3。

检查您是否可以升级您的git版本以查看问题是否仍然存在。

5

我知道它的晚,但这里是解决方案,

首先,让我们做一个部分克隆截断信息的量下来:

git clone --depth 1 <url> 

将克隆库用最小的git历史。但是,使用'-depth 1'进行克隆不会让您将您的更改推送到您的远程回购。 现在取,其余:

git fetch --depth=1000000 
(Update Oct/3/2013) for git version >= 1.8.3, 
git fetch --unshallow 

注:

‘git fetch –unshallow’ is basically an alias for ‘git fetch –depth=2147483647′. 

从浅克隆推不保证;推荐的工作流程是从浅层克隆中提交补丁(git format-patch)。尽管git克隆手册指出浅层克隆无法推送,但在浅层克隆和原点之间有共同的提交历史记录,可以让浅层克隆通过。但是要注意,如果原点重新提交了提交历史记录,那么你的浅层克隆将会遇到麻烦。 (source article: why-cant-i-push-from-a-shallow-clone).

+1

“无法保证从浅层克隆中推送”:真正。但它会很快! http://stackoverflow.com/a/21217326/6309 – VonC

+0

当我这样做时,我得到同样的错误。 “远端挂断......早期EOF –

+0

'git fetch --unshallow'没有为我工作,但添加远程名称和分支工作:'git fetch --unshallow origin branch123' –

相关问题