当前位置:   article > 正文

git设置代理和取消代理_git 关闭代理

git 关闭代理

使用git bash运行下面代码即可

查看代理:

git config --global --get http.proxy
git config --global --get https.proxy
  • 1
  • 2

取消代理:

git config --global --unset http.proxy
git config --global --unset https.proxy
  • 1
  • 2

设置单个库代理:

git config http.proxy "127.0.0.1:1080"
git config https.proxy "127.0.0.1:1080"
  • 1
  • 2

取消单个库代理:

git config --unset http.proxy
git config --unset https.proxy
  • 1
  • 2

设置全局代理:

git config --global http.proxy "127.0.0.1:1080"
git config --global https.proxy 127.0.0.1:7890
  • 1
  • 2

取消全局代理:

git config --global --unset http.proxy
git config --global --unset https.proxy
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/人工智能uu/article/detail/913227
推荐阅读
相关标签
  

闽ICP备14008679号