假设我们需要访问一个github的repo:github.com/graykode/nlp

并且clone其的项目: github.com/graykode/nlp

解决git clone一个github上的仓库太慢的问题

我们可以看到clone的速度为20kb/s,这个速度真的不能忍

使用github的镜像网站进行访问,github.com.cnpmjs.org,我们将原本的网站中的github.com 进行替换。例如上例子中替换为

https://github.com.cnpmjs.org/graykode/nlp-tutorial

解决git clone一个github上的仓库太慢的问题

对于clone也是一样,我们将原本的网站中的github.com.cnpmjs.org

例如上例子中替换为 github.com.cnpmjs.org/g

 

速度提高了10倍多。

相关文章:

  • 2021-08-23
  • 2021-08-09
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2021-06-01
猜你喜欢
  • 2021-09-10
  • 2021-11-24
  • 2022-12-23
  • 2021-07-27
  • 2021-06-14
  • 2021-05-12
相关资源
相似解决方案