error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054

report error

When using git clone, the following error is reported

remote: Counting objects: 5551, done.
remote: Compressing objects: 100% (2178/2178), 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

solve

1. Enter the command

git config http.sslVerify "false"

2. If appear

fatal: not in a git directory

3. Need git to initialize the file

git init

4. Re-git clone, found that the error is still reported

remote: Counting objects: 5551, done.
remote: Compressing objects: 100% (2178/2178), 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

5. Modify the size of the git cache, if 100M is not enough, it will be 1000M

git config --global http.postBuffer 100M

6. Git clone again, success

remote: Counting objects: 5551, done.
remote: Compressing objects: 100% (2178/2178), done.
remote: Total 5551 (delta 2403), reused 5116 (delta 2210)
Receiving objects: 100% (5551/5551), 9.30 MiB | 924.00 KiB/s, done.
Resolving deltas: 100% (2403/2403), done.

I performed the above operation twice, the first time git clone still reported an error, and the second time it succeeded, I wish you all good luck (✿◡‿◡)

Guess you like

Origin blog.csdn.net/qq_51453356/article/details/124896167