【问题标题】:CocoaPods/Specs cloning from github takes too much time从 github 克隆 CocoaPods/Specs 需要太多时间
【发布时间】:2017-07-06 23:37:44
【问题描述】:

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

git 克隆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

【问题讨论】:

  • 它大约有 500+ MB,所以这需要时间 :)
  • 对不起,我通常不喜欢“反问”,但是为什么要克隆规范存储库?您意识到这基本上只是一个包含所有规范的巨大存储库,对吧?

标签: ios iphone xcode git cocoapods


【解决方案1】:

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

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

它会将大小减小到 1/3。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-05
    • 1970-01-01
    • 2016-12-23
    • 2017-01-10
    相关资源
    最近更新 更多