git使用代理

一、使用代理

  • 代理无用户密码
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
  • 代理有用户密码
git config --global https.proxy "http://username:password@proxy.baidu.com:8080"

账号和密码中间使用:分开,账号密码后使用@符号进行连接地址url

二、取消代理

如果不需要使用代理

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

建议

不建议将代理设置为全局,应该按需设置代理

  1. Spoovehep - 29 天前

    In 2016 there are now many thousands of peer reviewed medical and epidemiological studies that show, illustrate or correlate, adverse biological effects with use of mobile phone technology or WIFI generic for cialis