Skip to content

Instantly share code, notes, and snippets.

@daqi
Forked from laispace/git 设置和取消代理
Last active July 19, 2016 11:03
Show Gist options
  • Save daqi/077cd7e1103e364193b5b8f54e7e4c66 to your computer and use it in GitHub Desktop.
Save daqi/077cd7e1103e364193b5b8f54e7e4c66 to your computer and use it in GitHub Desktop.
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
#只对github.com
git config --global http.https://git.521000.best.proxy socks5://127.0.0.1:1080
git config --global --unset http.https://git.521000.best.proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment