git config --global http.proxy 赞 踩 Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。
Ubuntu代理设置_unbuntu proxy server
全局代理查看与设置
#查看
env|grep -i proxy
#清空
export http_proxy=""
export https_proxy=""
export HTTP_PROXY=""
export HTTPS_PROXY=""
设置git代理
git config --global https.proxy <Your http proxy server>
git config --global http.proxy <Your http proxy server>
#The ~/.gitconfig should reflect these entries as:
[http]
proxy = <Your http proxy server>
[https]
proxy = <Your http proxy server>
Git代理设置
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
#reset proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
#或者只设置github.com代理,https使用http代理因为有时候https似乎不起效果
git config --global http.https://github.com.proxy http://127.0.0.1:1080
git config --global https.https://github.com.proxy https://127.0.0.1:1080