git设置代理,仅GitHub被代理,取消代理; curl使用代理
设置代理
http代理 1
2git config --global http.proxy http://127.0.0.1:10809
git config --global https.proxy https://127.0.0.1:10809
socks5代理 1
2git config --global http.proxy socks5://127.0.0.1:10808
git config --global https.proxy socks5://127.0.0.1:10808
取消设置
1 |
|
仅代理GitHub
1 |
|
取消设置 1
2git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy
设置需要密码的代理
1 |
|
curl使用代理
1 |
|
git设置代理,仅GitHub被代理,取消代理; curl使用代理
https://jcdu.top/2021/10/19/git设置代理,仅GitHub被代理,取消代理; curl使用代理/