【Git】error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

git 在更新版本或者提交代码的时候报错error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

在网上搜索了大量相关该bug解决的方案,最终都指向了这是http2本身的bug。

解决方案,我采取的是直接换掉Git的http版本

git config --global http.version HTTP/1.1

亲测特别有效。 

猜你喜欢

转载自blog.csdn.net/LOVE_Me__/article/details/128853793