[git] Solve the problems encountered

Table of contents

一、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054

二、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054


一、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054

Error:

Reason: When using GitLab for push operation, such an error usually occurs because your push package (push package) is too large, exceeding the size limit allowed by the server. This problem can be solved by increasing the cache limit in the Git configuration file.

Workaround: Follow these steps: Open a terminal and change to the project's root directory.

Enter the following command to increase the default limit for caching in Git:

git config --global http.postBuffer 1048576000

This command increases the cache limit to 1GB, this value can be modified as needed.

Execute the push command again.

二、error: RPC failed; curl 6 OpenSSL SSL_read: Connection was reset, errno 10054

Error:

Reason: The file in the remote warehouse is too large, you need to set the size of the local warehouse

Solution: 

(1) First enter the following command

git config http.sslVerify "false"

If the following error occurs:
git config http.sslVerify "false" fatal: not in a git directory,
continue to execute  git config --globle http.sslVerify "false"  to solve the problem

(2) The upper limit setting of the file size:

git config --global http.postBuffer 1048576000

(3) If the git code still fails to download, you need to continue to modify the size of the git cache

If push fails, replace the remote with an SSH link. When pushing, the local branch must have the same name as the remote branch and establish a connection.

Guess you like

Origin blog.csdn.net/qq_45956730/article/details/132166029