Git中设置代理和取消代理

Posted by hiho on February 9, 2018

设置Socks5代理

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

设置http/https代理

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

—End—

迭代

  • 2018年02月09日 15:45 初稿

参考