問題描述
使用git clone 下載代碼時出現(xiàn)如下錯誤:
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.
不過還有個問題洗鸵,在此期間會發(fā)現(xiàn)git clone代碼的速度特別慢,有時候甚至只有幾K仗嗦,所以可以在https://githubd.com/#/這個網(wǎng)站下載膘滨,
只需要貼上倉庫鏈接就可以下載了,速度非诚」眨快火邓。
原文鏈接:https://blog.csdn.net/u011386173/article/details/108120678