添加全局代理:

git config --global http.proxy 'http://127.0.0.1:7890'
git config --global https.proxy 'http://127.0.0.1:7890'

验证代理设置:

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

取消代理:

git config --global --unset http.proxy
git config --global --unset https.proxy
最后修改:2024 年 09 月 11 日
如果觉得我的文章对你有用,请随意赞赏