第一种方法:
在github.com后面加 .cnpmjs.org
例如我现在要用git下载gorm项目 https://github.com/go-gorm/gorm
想要加速则使用指令 git clone https://github.com.cnpmjs.org/go-gorm/gorm
第二种方法:直接换域名 hub.fastgit.org
例如 https://github.com/go-gorm/gorm
换成 https://hub.fastgit.org/go-gorm/gorm
第三种方法:
把项目直接克隆到gitee.com里去。gitee是国内的平台不用加速也很快。
本文介绍了三种加速git项目下载的方法:通过.cnpmjs.org镜像、切换到hub.fastgit.org域名以及使用国内平台Gitee。详细比较了这些方式的优缺点和适用场景。
3万+

被折叠的 条评论
为什么被折叠?



