使用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