github pull code error solution

Github often reports errors when pulling code

Failed to connect to github.com port 443 after 21087 ms: Timed out OpenSSL SSL_connect: Connection was reset in connection to github.com:443

solution

You can try to configure http proxy

Git in windows does not use the system proxy by default, so even if the proxy is connected or the proxy software is turned on, the browser can still access GitHub or Gitee; but using the git command line to connect to the GitHub or Gitee remote warehouse may not be accessible.

Solve problems that arise by configuring a proxy for git.

Configure http proxy

git config --global http.proxy 127.0.0.1:XXXXX

git config --global https.proxy ​​​​​​​127.0.0.1:XXXXX

Cancel proxy command:

git config --global --unset http.proxy

git config --global --unset https.proxy

Guess you like

Origin blog.csdn.net/lzq_20150715/article/details/131391582