Git clone: Failed to connect to github.com port 443 解决方案

130 阅读1分钟

配置http代理,7890是本机的代理端口,根据自己的配置来:

git config --global http.proxy 127.0.0.1:7890

git config --global https.proxy 127.0.0.1:7890

#设置socks

git config --global http.proxy 'socks5://127.0.0.1:1080'

git config --global https.proxy 'socks5://127.0.0.1:1080'

取消代理:

git config --global --unset http.proxy

git config --global --unset https.proxy

查看代理配置:

git config --global --get http.proxy

git config --global --get https.proxy