启用代理
git config --global http.proxy http://proxyuser:[email protected]:8080
git config --global https.proxy https://proxyuser:[email protected]:8080
git config --global http.sslVerify false
禁用代理
git config --global --unset http.proxy
git config --global --unset https.proxy
检查当前代理
git config --global --get http.proxy
git config --global --get https.proxy
以上教程参考
https://gist.github.com/laispace/666dd7b27e9116faece6http://stackoverflow.com/questions/783811/getting-git-to-work-with-a-proxy-serverhttp://my.oschina.net/tearlight/blog/193913
时间: 2024-10-13 21:24:21