git clone 设置代理访问github

想要学习下redis源码,于是从github克隆。发现速度极慢,需要设置代理,在此记录下。

设置代理

git config --global http.proxy "socks5://127.0.0.1:1080"
git config --global https.proxy "socks5://127.0.0.1:1080"

取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy

猜你喜欢

转载自blog.csdn.net/hqqqqqqq555/article/details/103066013