git配置本地代理

局部代理

http:
git config --local http.proxy 127.0.0.1:7890

https:
git config --local https.proxy 127.0.0.1:7890

全局代理

http:
git config --global http.proxy 127.0.0.1:7890

https:
git config --global https.proxy 127.0.0.1:7890

去掉代理

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

网络问题

  • 很多时候避免不了github
  • 太多的问题需要对抗寡妇王

原文链接: git配置本地代理 版权所有,转载时请注明出处,违者必究。
注明出处格式:流沙团 ( http://gyarmy.com/post-837.html )

发表评论

0则评论给“git配置本地代理”