Skip to content

Instantly share code, notes, and snippets.

@smallnest
Forked from laispace/git 设置和取消代理
Created November 13, 2016 11:31
Show Gist options
  • Save smallnest/b45c73d72e7cdd5f694bfb486edd3ae0 to your computer and use it in GitHub Desktop.
Save smallnest/b45c73d72e7cdd5f694bfb486edd3ae0 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
@smallnest
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