socks代理:
|
1 2 |
git config --global http.proxy 'socks5://127.0.0.1:7890' git config --global https.proxy 'socks5://127.0.0.1:7890' |
http/https代理:
|
1 2 |
git config --global http.proxy 'http://127.0.0.1:7890' git config --global https.proxy 'https://127.0.0.1:7890' |
如果要取消代理:
|
1 2 |
git config --global --unset http.proxy git config --global --unset https.proxy |