美文网首页
Git设置代理

Git设置代理

作者: w_nanan | 来源:发表于2017-08-02 08:16 被阅读72次

查看代理命令

git config --global --list
或
git config --global http.proxy
git config --global https.proxy

设置代理

git config --global http.proxy http://proxyhost:port
git config --global https.proxy https://proxyhost:port
或(带用户密码)
git config --global http.proxy http://user:password@proxyhost:port
git config --global https.proxy https://user:password@proxyhost:port

取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy

相关文章

网友评论

      本文标题:Git设置代理

      本文链接:https://www.haomeiwen.com/subject/wfcelxtx.html