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://127.0.0.1:1080
export HTTPS_PROXY=http://127.0.0.1:1080

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

你可能感兴趣的:(mac http&git代理配置)