Last active
August 9, 2018 12:54
-
-
Save JerryCui/630e9abc211fb6334e1058a8d64ee357 to your computer and use it in GitHub Desktop.
git proxy settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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