Note · 2025年8月21日 0

git设置、查看、取消代理

设置代理:

//http || https
git config --global http.proxy 127.0.0.1:7078
git config --global https.proxy 127.0.0.1:7078

//sock5代理
git config --global http.proxy socks5 127.0.0.1:7078
git config --global https.proxy socks5 127.0.0.1:7078

查看代理:

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

取消代理:

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