git 使用代理

Jun 05 2020

设置sock5代理

1
git config --global http.proxy socks5h://127.0.0.1:1080

http/https代理

1
2
git config --global https.proxy http://127.0.0.1:12333
git config --global https.proxy https://127.0.0.1:12333

查看代理

1
git config --global http.proxy

取消代理

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