error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
error: 3685 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
这是因为升级了最新版本2.34.1之后,http协议默认设置是HTTP/2导致的
设置一下即可解决:
git config --global http.version HTTP/1.1
如果遇到了这个错误:The remote end hung up unexpectedly,可以尝试增加buffer
git config --global http.postBuffer 128M