从github clone代码比较慢的解决方案

以下载react源码为例

# 拉取代码
git clone https://github.com/facebook/react.git

# 如果拉取速度很慢,可以考虑如下2个方案:

# 1. 使用cnpm代理
git clone https://github.com.cnpmjs.org/facebook/react

# 2. 使用码云的镜像(一天会与react同步一次)
git clone https://gitee.com/mirrors/react.git
posted @ 2020-08-05 18:11  于鹏的博客  阅读(415)  评论(0)    收藏  举报