Skip to content

Instantly share code, notes, and snippets.

@huzhifeng
Forked from laispace/git 设置和取消代理
Created October 24, 2016 01:29
Show Gist options
  • Save huzhifeng/7b55136718e9db68064f94060b1d5a19 to your computer and use it in GitHub Desktop.
Save huzhifeng/7b55136718e9db68064f94060b1d5a19 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
@huzhifeng
Copy link
Author

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