本文属于转载
原作者:老菜逼
原链接:https://www.jianshu.com/p/fb9848d5418c
方法非常简单,什么都不用设置,只需要在链接的 github.com 后插入'.cnpmjs.org',其它不变。 用以下clone的链接做示例:
git clone https://github.com/Microsoft/LightGBM
# 改为
git clone https://github.com.cnpmjs.org/Microsoft/LightGBM
原链接,这个clone速度一般是6.00 KiB/s, 将链接换为镜像链接后,速度可以上 2.30 MiB/s, 也是较大提升了。没梯子的同学可以试试。