Ios 从github克隆CocoaPods/Specs花费了太多时间

Ios 从github克隆CocoaPods/Specs花费了太多时间,ios,iphone,xcode,git,cocoapods,Ios,Iphone,Xcode,Git,Cocoapods,我尝试了很多次来克隆这个url 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

我尝试了很多次来克隆这个url

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

如果您只需要最新版本,请尝试

git clone --depth=1 https://github.com/CocoaPods/Specs.git
它会将大小减小到1/3


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

大约500+MB,这需要时间:)对不起,我通常不喜欢“反问题”,但为什么要克隆规范回购?你知道这基本上只是一个包含所有规格的巨大存储库,对吗?