使用git bash运行下面代码即可

查看代理:

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

取消代理:

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

设置单个库代理:

git config http.proxy "127.0.0.1:1080"
git config https.proxy "127.0.0.1:1080"

取消单个库代理:

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

设置全局代理:

git config --global http.proxy "127.0.0.1:1080"
git config --global https.proxy 127.0.0.1:7890

取消全局代理:

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

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐