您的位置:首页 > 其它

git 命令设置代理

2016-10-06 18:36 260 查看
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
[/code]
change
proxyuser
to your proxy user
change
proxypwd
to your proxy password
change
proxy.server.com
to the URL of your proxy server
change
8080
to the proxy port configured on your proxy server
If you decide at any time to reset this proxy and work without proxy:

Command to use:

git config --global --unset http.proxy
[/code]
Finally, to check the currently set proxy:

git config --global --get http.proxy
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git