Git如何设置/清除代理

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

猜你喜欢

转载自blog.csdn.net/qq_41624557/article/details/124068148
今日推荐