zoukankan      html  css  js  c++  java
  • github clone 速度慢解决方法

    只需要将 www.github.com/后面为代码库 改为

    www.github.com.cnpmjs.org/后面为代码库地址 就可以实现一键式加速。

    ---------------------------------------------具体说明--------------------------------------------------

    本方法亲测只需要1s,能够提高10倍速度访问github以及clone项目,并且不需要借助其他类似gitee等外部网站。( 送我上高赞 !!)

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

    我们可以看到访问的网站的速度为4s多

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

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

    解决方案:使用github的镜像网站进行访问,github.com.cnpmjs.org,我们将原本的网站中的github.com 进行替换。

    例如上例子中替换为https://github.com.cnpmjs.org/graykode/nlp-tutorial

    我们可以看到访问网站的速度变为0.78s,大大提高了速度

    对于clone也是一样,我们将原本的网站中的http://github.com 进行替换为github.com.cnpmjs.org。例如上例子中替换为  https://github.com.cnpmjs.org/graykode/nlp-tutorial.git

    速度提高了10倍多

    作者:Don.hub
    链接:https://www.zhihu.com/question/27159393/answer/1117219745
    来源:知乎
    著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

  • 相关阅读:
    List集合
    ArrayList_toArray
    Collection集合基础知识
    Array类的使用
    16.10
    16.9
    16.8
    16.7
    16.6
    16.5
  • 原文地址:https://www.cnblogs.com/RB26DETT/p/13840500.html
Copyright © 2011-2022 走看看