Git如何设置/清除代理
设置ss
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 http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
本文详细介绍了如何在Git中设置和清除代理,包括使用socks5和HTTP/HTTPS代理,以及取消已设置的代理配置,适用于开发者解决网络访问问题。
8379

被折叠的 条评论
为什么被折叠?



