Skip to content

Instantly share code, notes, and snippets.

@rswanderer
Created December 9, 2016 19:31
Show Gist options
  • Save rswanderer/8c1d2fbde65ee465203615d8aea663a3 to your computer and use it in GitHub Desktop.
Save rswanderer/8c1d2fbde65ee465203615d8aea663a3 to your computer and use it in GitHub Desktop.
git proxy config

###for http proxy:

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080

###remove proxy:

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

###for socks5:

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment