github拉代码报错解决方案

github拉代码经常报错

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

解决方案

可以试下 配置 http 代理

windows 中 git 默认不会使用系统代理,所以即使连接代理或者打开代理软件,浏览器仍然可以访问 GitHub 或 Gitee;但是使用 git 命令行连接 GitHub 或 Gitee 远程仓库可能会出现无法访问的现象。

通过为 git 配置代理解决出现的问题。

配置http代理

git config --global http.proxy 127.0.0.1:XXXXX

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

取消代理命令:

git config --global --unset http.proxy

git config --global --unset https.proxy

猜你喜欢

转载自blog.csdn.net/lzq_20150715/article/details/131391582