zoukankan      html  css  js  c++  java
  • git error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: 7777 bytes of body are still expected

    使用git clone包时报了这个错:

    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    error: 7777 bytes of body are still expected
    fetch-pack: unexpected disconnect while reading sideband packet
    fatal: early EOF
    fatal: fetch-pack: invalid index-pack output

    查看相关博客,将缓存加大:

    git config --global http.postBuffer 1024M
    使用 git config --list可以查看对应的配置

    修改后还是有问题,可能是文件过多,于是换了种方法,分批下载:

     1 关闭core.compression
     2 git config --global core.compression 0
     3 
     4 depth下载最近一次提交
     5 git clone --depth 1 url
     6 
     7 然后获取完整库
     8 git fetch --unshallow 
     9 
    10 pull一下查看状态
    11 git pull --all

    参考地址:

    https://www.cnblogs.com/niudaben/p/12503650.html

    https://www.cnblogs.com/codedoge/p/11466086.html






  • 相关阅读:
    常用命令
    经典算法
    框架
    计算机网络
    设计模式
    JVM
    数据库
    多线程
    Java中HashMap的底层实现原理
    构建大小顶堆
  • 原文地址:https://www.cnblogs.com/whycai/p/15500655.html
Copyright © 2011-2022 走看看