Skip to content

Instantly share code, notes, and snippets.

@btfak
Forked from laispace/git 设置和取消代理
Created April 19, 2017 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save btfak/1f0a1256ff1af21d0363623a46667c48 to your computer and use it in GitHub Desktop.
Save btfak/1f0a1256ff1af21d0363623a46667c48 to your computer and use it in GitHub Desktop.
git config --global https.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
npm config delete proxy
@btfak
Copy link
Author

btfak commented Apr 19, 2017

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