使用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可以查看对应的配置

git error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: 7777 bytes of body are still expected

 

 

 

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

 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






相关文章:

  • 2022-12-23
  • 2021-07-30
  • 2021-11-24
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-01-25
猜你喜欢
  • 2021-12-20
  • 2021-09-06
  • 2021-04-28
  • 2022-12-23
相关资源
相似解决方案