設(shè)置當(dāng)前代理
git config http.proxy http://127.0.0.1:2333
取消當(dāng)前代理
git config --unset http.proxy
取消全局代理
git config --global --unset http.proxy
設(shè)置socks5代理
git config http.proxy socks5://127.0.0.1:10809
觀察127.0.0.1:2333绅你,127.0.0.1代表本機(jī)狭吼,相當(dāng)于localhost揉稚,2333是代理設(shè)置的本地監(jiān)聽端口郊闯。
代理