Skip to content

Instantly share code, notes, and snippets.

@chenset
Forked from laispace/git 设置和取消代理
Last active May 4, 2019 14:17
Show Gist options
  • Select an option

  • Save chenset/133ccae1e2e330f3a62a20dd0d391395 to your computer and use it in GitHub Desktop.

Select an option

Save chenset/133ccae1e2e330f3a62a20dd0d391395 to your computer and use it in GitHub Desktop.
//socks5
//设置
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
//取消
git config --global --unset http.proxy socks5://127.0.0.1:1080
git config --global --unset https.proxy socks5://127.0.0.1:1080
//HTTP
//设置
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment