git设置代理加速clone

2021-08-16  本文已影响0人  术枚派

设置当前代理
git config http.proxy http://127.0.0.1:2333
取消当前代理
git config --unset http.proxy
取消全局代理
git config --global --unset http.proxy
设置socks5代理
git config http.proxy socks5://127.0.0.1:10809

观察127.0.0.1:2333,127.0.0.1代表本机,相当于localhost,2333是代理设置的本地监听端口。


代理
上一篇 下一篇

猜你喜欢

热点阅读