文章来源 | 恒源云社区
原文地址 | 【小技巧-代码篇】
1、如何加速从 GitHub 上克隆代码或下载文件?
加速克隆代码可以将 github.com 替换为 github.com.cnpmjs.org 的镜像地址。
如仓库地址为 https://github.com/kelseyhightower/nocode.git
替换后的地址为 https://github.com.cnpmjs.org/kelseyhightower/nocode.git
# 原始地址 https://github.com/kelseyhightower/nocode.git
# github.com 替换为 github.com.cnpmjs.org
git clone https://github.com.cnpmjs.org/kelseyhightower/no