Git 代理设置

Http协议代理:

  git config --global http.proxy http://127.0.0.1:1080
  git config --global https.proxy https://127.0.0.1:1080

socks协议代理:

  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 --unset http.proxy
  git config --global --unset https.proxy

 

posted @ 2020-02-20 17:08  乄末曲丶  阅读(122)  评论(0)    收藏  举报