git clone下载代码出错(RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054)及下载速度慢的问题解决

问题描述

使用git clone 下载代码时出现如下错误:

remote: Enumerating objects: 832, done.
remote: Counting objects: 100% (832/832), done.
remote: Compressing objects: 100% (484/484), done.
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

解决方法:

输入如下命令:

git config http.sslVerify "false"

如果提示:

fatal: not in a git directory

再输入:

git init
git config http.sslVerify "false"

然后再重新git clone,就成功了。

remote: Enumerating objects: 832, done.
remote: Counting objects: 100% (832/832), done.
remote: Compressing objects: 100% (484/484), done.
remote: Total 832 (delta 447), reused 554 (delta 193), pack-reused 0
Receiving objects: 100% (832/832), 12.51 MiB | 19.00 KiB/s, done.
Resolving deltas: 100% (447/447), done.
不过还有个问题,在此期间会发现git clone代码的速度特别慢,有时候甚至只有几K,所以可以在https://githubd.com/#/这个网站下载,
只需要贴上仓库链接就可以下载了,速度非常快。

原文链接:https://blog.csdn.net/u011386173/article/details/108120678

你可能感兴趣的:(git clone下载代码出错(RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054)及下载速度慢的问题解决)