# 方法 [https://gitclone.com/](https://gitclone.com/)通过镜像缓存可以加速从github clone代码。 假设我们要clone curl 工程代码,原先的方法为: ``` git clone https://github.com/curl/curl.git ``` 这个方法速度通常很慢,通常速度在Kb级,而且不稳定。 使用镜像缓存的clone方法为: ``` git clone https://gitclone.com/github.com/curl/curl.git ``` 这样速度通常可以达到Mb。 # 问题 因为是镜像缓存,代码可能不是最新的。在从镜像缓存获得仓库之后,应该再从github pull最新更新。 # 参考 - [https://gitclone.com/](https://gitclone.com/) - [利用缓存加速从github clone](https://zhuanlan.zhihu.com/p/141597698)