在拷贝 github 上优秀的开源项目时,每次使用 git
clone 命令都要等好久。上网查找了很多办法,有改 host 文件的,也有修改 ip 的。还有把项目 fork 再添加到 gitee 中再 clone 的(因为 gitee 是国内的服务器,再 clone 就会很快)。都比较麻烦

这里有两个很简便的方法亲测有效
以 clone vue 为例:

git clone https://github.com/vuejs/vue.git

1. 使用 cnpm 代理

git clone https://github.com.cnpmjs.org/vuejs/vue.git

2. 使用码云的镜像

git clone https://gitee.com/mirrors/vue.git