原因:从github上clone或者download一个项目,慢的要命!
设置代理
如果socks5(SSR)
第一,你需要知道你本地的socks5代理ip地址和端口。
例如。127.0.0.1端口1080
然后使用此命令设置代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global https.https://github.com.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 --unset http.proxy
git config --global --unset https.proxy