0%

git error report and solution inventory

git error report and solution inventory

Error One

fatal: unable to access'https://github.com/.......git/': Failed to connect to github. com port 443: Timed out

Solution One

  1. Check your git configuration
git config --global -l

If you don’t have any content related to https proxy, such as https_proxy=…, the problem is not here. If you have content related to https proxy, please delete it from the ~/.gitconfig file and try again

  1. If it still doesn’t work, please unset the environment variable
env|grep -i proxy

You should have one or a few lines https_proxy = … use the following to unset them one by one: unset https_proxy (or HTTPS_PROXY, depending on the name of the variable)

  1. Check the environment variables again
env|grep -i proxy

If it doesn’t show anything you should be good. Note: This solution can be applied to http and https proxy issues. Just change the variable name from https to http

Solution Two

  1. Manually configure the git proxy. The git client can enter the following two commands
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
  1. Cancel proxy
git config --global --unset http.proxy
git config --global --unset https.proxy

Error two

fatal: unable to access'https://github.com/.......git/': failed to receive handshake ssl/tls connection failed

Solution

git config --global http.sslBackend "openssl"
git config --global http.sslCAInfo [path to .pem file]

Error three

fatal: unable to access'https://github.com/.......git/': OpenSSL SSL_read: Connection was reset, errno 10054

Solution

git config --global http.sslVerify "false"

Remarks

Encountering these problems is likely to be due to scientific Internet access, you can close it and try it. If you encounter these problems temporarily, you will make up for them later.

-------------The end of this articleThank you for your reading-------------