git设置代理
有时候我们在clone github代码会很慢或者超时等问题,如果你本地有代理工具(如小飞机等工具),这个时候可以设置代理来提高速度。
设置代理:
socket代理:
git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080'
普通http/https代理:
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
查看代理:
git config --global --get http.proxy git config --global --get https.proxy
取消代理:
git config --global --unset http.proxy git config --global --unset https.proxy

浙公网安备 33010602011771号