zoukankan      html  css  js  c++  java
  • git 配置下载大小

     

    RPC failed; curl 18 transfer closed with outstanding read data remaining the remote end hung up unexpectedly early EOF index-pack failed

     

    解决方案也是网上搜的,总结一下

    一,加大缓存区
    git config --global http.postBuffer 524288000
    这个大约是500M
    二、少clone一些,–depth 1
    git clone https://github.com/flutter/flutter.git --depth 1
    –depth 1的含义是复制深度为1,就是每个文件只取最近一次提交,不是整个历史版本。
    三、换协议
    clone http方式换成SSH的方式,即 https:// 改为 git://
    例如git clone https://github.com/flutter/flutter.git
    换成git clone git://github.com/flutter/flutter.git

     

     

    原因1:缓存区 溢出

    解决方法:命令行输入

    git config http.postBuffer 524288000

    执行上面命令如果依旧clone失败,在继续看下面

    原因2:网络下载速度 缓慢

    解决方法:命令行输入

    git config --global http.lowSpeedLimit 0

    git config --global http.lowSpeedTime 999999

    原因3:访问国外资料网络限制或者不稳定下载速度 缓慢

    打开VPN是,一切OK

    git config --global http.postBuffer 1048576000

  • 相关阅读:
    ABAP-smartforms
    字符串截取,长度获取
    ',' 导致excel 分列显示
    SALV使用
    SALV双击事件,相应另一个SALV
    CLEAR REFRESH区别
    SY-INDEX和SY-TABIX区别
    JIT机制对运行速度的优化
    《大道至简》读后感
    N皇后问题
  • 原文地址:https://www.cnblogs.com/wanjun-top/p/13414041.html
Copyright © 2011-2022 走看看