Skip to content

Instantly share code, notes, and snippets.

@xiaobailong24
Forked from laispace/git 设置和取消代理
Last active January 13, 2021 10:06
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiaobailong24/3c1ebc54ea811dbca25da0a6d9c03f39 to your computer and use it in GitHub Desktop.
Save xiaobailong24/3c1ebc54ea811dbca25da0a6d9c03f39 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
# 只对github.com
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global --unset http.https://github.com.proxy
@whyscience
Copy link

soooo good

@a0x
Copy link

a0x commented Jun 7, 2018

npm config delete proxy
这个命令的作用是什么呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment