Git设置代理

设置代理

http

git config --global http.proxy http://ip:port
git config --global https.proxy http://ip:port

例如:

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

取消设置

http

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

Git设置代理
https://lkhsss.github.io/Git/git设置代理/
作者
Lkhsss
发布于
2024年8月31日
许可协议