Contents

Github代理设置

设置代理

对于socks5,

  1. 全局代理
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
  1. 只对github.com使用代理,其他仓库不走代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global https.https://github.com.proxy socks5://127.0.0.1:1080

取消代理

取消github代理

git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy

取消全局代理

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