Skip to content

Git语言笔记

设置http代理

bash
git config --global http.proxy http://127.0.0.1:10808
git config --global https.proxy http://127.0.0.1:10808

设置Socks5代理

bash
git config --global http.proxy socks5://127.0.0.1:10808
git config --global https.proxy socks5://127.0.0.1:10808

验证代理

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

取消代理

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