git config global http.proxy

git config global http.proxy http://135.245.48.34:8000
原型: git config --global http.proxy http[s]://userName:password@proxyaddress:port

原文地址:https://www.cnblogs.com/qinqiu/p/8333886.html