全局代理
git config --global http.proxy 'http://127.0.0.1:1080'
git config --global https.proxy 'http://127.0.0.1:1080'
当前项目设置代理:
git config --local http.proxy 'http://127.0.0.1:1080'
取消代理:
git config --global --unset http.proxy
查看配置
git config --local --list
备注
上面的几行指定请诸位看官记得替换成自己的代理服务器IP和端口
#git代理如何搭建?参考本文档