针对http的设置

git config --global http.proxy 'http://127.0.0.1:1081' && git config --global https.proxy 'http://127.0.0.1:1081
#这个是全局的 在不需要的时候关闭
git config --global http.proxy '' && git config --global https.proxy ''

针对shadowsocks的设置

git config --global http.proxy 'socks5://127.0.0.1:1080' && git config --global https.proxy 'socks5://127.0.0.1:1080'