Git Bash设置代理

从GitHub clone代码速度比较慢,设置代理,(假设端口是1080):

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
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/dreamroute/p/11315126.html