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






posted @ 2021-11-02 19:35  菜小鱼~  阅读(1284)  评论(0编辑  收藏  举报