git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
删除 代理
git config --global --unset http.proxy
git config --global --unset https.proxy
或者更加偷懒地在系统变量里添加HTTP_PROXY和HTTPS_PROXY