git clone失败解决方法

发布时间 2023-08-14 20:25:36作者: Dsp Tian

git clone如果遇到下面两个error:

error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly before end of the underlying stream
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054

输入下面命令可能有帮助:

git config --global http.version HTTP/1.1
git config --global http.sslVerify false
git config --global http.lowSpeedLimit 0 
git config --global http.lowSpeedTime 999999
git config --global http.postBuffer 1048576000

处理完之后可以再改回来: