两种情况:
第一种情况自己有vpn,网页可以打开github。说明命令行在拉取/推送代码时并没有使用vpn进行代理
第二种情况没有vpn,这时可以去某些网站上找一些代理ip+port
配置socks5代理
git config --global http.proxy socks5 127.0.0.1:7890 git config --global https.proxy socks5 127.0.0.1:7890
配置http代理
git config --global http.proxy 127.0.0.1:7890 git config --global https.proxy 127.0.0.1:7890
- 解决方案 connect 方案 Failed github解决方案connect方案failed ps-github-com-failed-to-connect-t github github-fatal-unable-to-access-htt ps-github-com-failed-to-connect-t connection failed github timed connect github to failed connect failed github timed docker解决方案connect方案 oracle解决方案 方案failed 方案github手机 socketexception connection finshell解决方案