使用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/#/这个网站下载,

只需要贴上仓库链接就可以下载了,速度非常快。

或者最终极、最好用的方法:将Gituhub仓库克隆到Gitee上,Gitee速度快的飞起!!!!! 具体操作可参考文章:https://blog.csdn.net/u011386173/article/details/109099134?spm=1001.2014.3001.5501

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐