错误代码:Failed to connect to github.com port 443 after 75005 ms: Couldn't connect to server
在有猫上网的情况下,设置github的git走猫的代理。
git config --global http.https://github.com.proxy socks5://127.0.0.1:7890
如果需要所有全局都走猫的代理
git config --global https.proxy socks5://127.0.0.1:7890
git config --global http.proxy socks5://127.0.0.1:7890
取消代理设置的命令如下:
git config --global --unset http.https://github.com.proxy
git config --global --unset http.proxy
git config --global --unset https.proxy