//设置全局代理
//http
git config --global https.proxy http://127.0.0.1:7890
//https
git config --global https.proxy https://127.0.0.1:7890
//使用socks5代理
git config --global http.proxy socks5://127.0.0.1:7890
git config --global https.proxy socks5://127.0.0.1:7890
//取消全局代理
git config --global --unset http.proxy
git config --global --unset https.proxy
//只对github.com使用代理,其他仓库不走代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:7890
git config --global https.https://github.com.proxy socks5://127.0.0.1:7890
//取消github代理
git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy
//对于使用git@协议的,可以配置socks5代理
//在~/.ssh/config 文件后面添加几行,没有可以新建一个
//socks5
Host github.com
User git
ProxyCommand connect -S 127.0.0.1:7890 %h %p
//http || https
Host github.com
User git
ProxyCommand connect -H 127.0.0.1:7890 %h %p
npm config set prefix "D:\Programs\Official\NodeGobal"
npm config set cache "D:\Programs\Official\NodeCache"