git clone失败解决方法

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

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

git config --global http.version HTTP/2
git config --global http.sslVerify true
posted @ 2023-08-14 20:19  Dsp Tian  阅读(3213)  评论(0编辑  收藏  举报