git config --global http.proxy http://127.0.0.1:1080git config --global https.proxy https://127.0.0.1:1080#含有用户名密码的代理git config --global http.proxy http://username:password@127.0.0.1:1080git config --global --unset http.proxygit config --global --unset https.proxynpm config delete proxygit config --global http.proxy 'socks5://127.0.0.1:1080'git config --global https.proxy 'socks5://127.0.0.1:1080'
参考
https://www.cnblogs.com/hookjc/p/13179004.html