Created
January 11, 2017 06:32
-
-
Save WindomZ/177b282c4d4691ba48ea4a144e0fab71 to your computer and use it in GitHub Desktop.
Set git proxy
This file contains hidden or 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
# Set git proxy with socks5, like shadowsocks. | |
git config --global http.proxy socks5://127.0.0.1:1080 | |
git config --global https.proxy socks5://127.0.0.1:1080 | |
# Unset git proxy | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment