Git SOCKS5代理无法生效(已解决)
解决方法:
git config --global http.proxy socks5h://127.0.0.1:1080 git config --global https.proxy socks5h://127.0.0.1:1080
相比原先的方法:
git config --global http.proxy socks5://127.0.0.1:1080 git config --global https.proxy socks5://127.0.0.1:1080
将 socks5://更改为了 socks5h://,这样可以在代理服务器上解析 DNS,而不是在本地解析。
取消代理:
git config --global --unset http.proxy git config --global --unset https.proxy
查看代理:
git config --global --get http.proxy git config --global --get https.proxy
浙公网安备 33010602011771号