2017-02-17 79 views
0

我試了很多時間來克隆這個網址的CocoaPods /規格從GitHub克隆花費太多時間

混帳克隆https://github.com/CocoaPods/Specs.git

但它顯示像下面,如何解決這個問題?請幫幫我。

$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress 
    Cloning into 'master'... 
    remote: Counting objects: 1082703, done.   
    remote: Compressing objects: 100% (279/279), done.   
    Receiving objects: 2% (25216/1082703), 5.03 MiB | 16.00 KiB/s 

有時它可以打破等之後,完成50%,並呈現以下錯誤

error: RPC failed; curl 56 SSLRead() return error -9806 MiB/s 
fatal: The remote end hung up unexpectedly 
fatal: early EOF 
fatal: index-pack failed 
+2

其約500 + MB的所以呀,這將需要時間:) –

+1

對不起,我通常不喜歡「反問題」,但爲什麼你想克隆規格回購?你意識到這基本上只是所有規格的巨大存儲庫,對吧? – Gero

回答

0

如果您只需要更新到最新版本,嘗試

git clone --depth=1 https://github.com/CocoaPods/Specs.git 

這將減小尺寸到1/3。

此外,根據您的網絡條件,代理可能會有所幫助。