git config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy https://127.0.0.1:1080 #含有用户名密码的代理 git config --global http.proxy http://username:password@127.0.0.1:1080 git config --global --unset http.proxy git config --global --unset https.proxy npm config delete proxy git 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



