代理
全局代理
#如果使用的是http代理
git config --global http.proxy http://代理地址:代理端口
#如果使用的是socks5代理
git config --global http.proxy socks5://代理地址:代理端口
域名代理
#如果使用的是http代理
git config --global http.https://github.com.proxy http://代理地址:代理端口
#如果使用的是socks5代理
git config --global http.https://github.com.proxy socks5://代理地址:代理端口
如果代理地址是win,需要设置防火墙访问规则 www.cnblogs.com/osnosn/p/15…
取消代理
git config --global --unset http.proxy
git config --global --unset http.https://github.com.proxy