Skip to content

Instantly share code, notes, and snippets.

@JerryCui
Last active August 9, 2018 12:54
Show Gist options
  • Save JerryCui/630e9abc211fb6334e1058a8d64ee357 to your computer and use it in GitHub Desktop.
Save JerryCui/630e9abc211fb6334e1058a8d64ee357 to your computer and use it in GitHub Desktop.
git proxy settings
1. Basic:
git config --global http.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
2. socks:
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
3. only for github
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
cancel by : git config --global --unset http.https://github.com.proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment