zhangxibin
发布于 2025-09-05 / 1 阅读
0
0

git设置代理和取消代理

使用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


评论