Posted onIngitViews: Valine: Symbols count in article: 1.7kReading time ≈2 mins.
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
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
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)
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
Manually configure the git proxy. The git client can enter the following two commands
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.