git 设置代理

全局git设置代理
git config --global http.proxy 'socks5://127.0.0.1:10808'

取消git全局代理
git config --global --unset http.proxy

只对github.com

git config --global http.https://github.com.proxy socks5://127.0.0.1:10808

取消代理

git config --global --unset http.https://github.com.proxy

你可能感兴趣的:(git 设置代理)