git设置代理

设置全局代理,使用 http 代理

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

设置全局代理,使用 socks5 代理

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

查看代理内容

git config --global --list

取消设置代理

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