这对我来说是一个关键问题,因为我无法克隆。
$ git clone <repo>
Cloning into '<repo-name>'...
remote: Enumerating objects: 1705, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (45/45), done.
error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly: PROTOCOL_ERROR (err 1)
error: 1282 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克隆错误错误:RPC失败; curl 92 HTTP/2 流 7 在底层流结束之前没有完全关闭
尝试运行命令来增加 git 缓冲区大小
git config --global http.postBuffer 524288000
然后
git clone <repo>