2017-02-17 20 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。

此外,根据您的网络条件,代理可能会有所帮助。