mac http&git代理配置

git代理清除
git config --global --unset http.proxy
git config --global --unset https.proxy

输出代理:
$echo $http_proxy
$echo $https_proxy
$echo $HTTPS_PROXY
$echo $HTTP_PROXY

http代理配置:
export HTTP_PROXY=http://proxy.somewhere.com:80
export HTTPS_PROXY=http://proxy.somewhere.com:80

git代理配置:
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080

 
posted @ 2017-03-22 21:06  兜兜有糖的博客  阅读(2760)  评论(0编辑  收藏  举报