2013-08-31 73 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' –

相關問題