GIT克隆失败:RPC failed; curl 18 tran

2023-11-15  本文已影响0人  木木呦
Cloning into 'xxxxxx'...
remote: Enumerating objects: 3360, done.
remote: Counting objects: 100% (3360/3360), done.
remote: Compressing objects: 100% (2477/2477), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 6786 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

解决方案:

1.先深度克隆为1

$ git clone https://gitee.com/xxxxxx/ccccccc.git --depth 1

2.然后再更新所有

$ git remote set-branches origin '*'
$ git fetch -v

静静等待结果....

如果还不行,可能是你的分支太多了,拉取你需要的即可

$ git remote set-branches origin 'release*'
$ git fetch -v

再不行就设置下超时时间之类的

设置超时时间
git config --global http.postBuffer 1524288000
git config --global core.compression 0
git config --global core.deltaBaseCacheLimit 8000
上一篇下一篇

猜你喜欢

热点阅读