git clone 加速

方法一:改 hosts 文件

缺点:提速不明显,而且过一段时间没用了

方法二:从码云中按照 Github 仓库的 Https 地址导入项目,然后通过码云来 clone

缺点:操作步骤繁杂

方法三:在 github.com 后面加上 .cnpmjs.org 或者换个域名 github.com 替换成 hub.fastgit.org

这个也不错,速度 1 ~ 2 MB/s

原文地址:https://www.cnblogs.com/consolexinhun/p/14269057.html