# 一、概述
使用传统的git clone https://github.com/xxx的方式从GitHub克隆一个代码仓库有时候会非常的慢,可能会导致克隆失败或超时的现象。
这就需要采用其他的办法来解决.我们可以使用github的镜像网站进行访问github.com.cnpmjs.org
,我们将原本的网站中的http://github.com 进行替换为github.com.cnpmjs.org。
例如,我们在克隆https://github.com/lodash/lodash.git
这个仓库的时候,我们可以这么替换:
https://github.com.cnpmjs.org/lodash/lodash.git
这样的话能大大的提高克隆速度。