Git报错: Failed to connect to github.com port 443 解决方案
两种情况:
第一种情况自己有vpn,网页可以打开github。说明命令行在拉取/推送代码时并没有使用vpn进行代理
第二种情况没有vpn,这时可以去某些网站上找一些代理ip+port
解决办法:配置http代理Windows、Linux、Mac OS 中 git 命令相同:
配置socks5代理
1 | git config --global http.proxy socks5 127.0.0.1:7890 |
配置http代理
1 | git config --global http.proxy 127.0.0.1:7890 |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.