Windows git bash 设置代理

761 阅读1分钟

设置http代理

git config --global http.proxy http://10.191.131.156:3128/
git config --global https.proxy http://10.191.131.156:3128/

设置socks5代理

git config --global http.proxy socks5://10.191.131.156:3128/
git config --global https.proxy socks5://10.191.131.156:3128/

取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy