liwei
V2EX  ›  问与答

git clone个内核代码怎么这么慢

  •  
  •   liwei · Jan 30, 2013 · 8477 views
    This topic created in 4937 days ago, the information mentioned may be changed or developed.
    git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
    难不成git协议也被封了?有什么好的解决办法么?
    Supplement 1  ·  Jan 30, 2013
    不太清楚是kernel.org带宽太小还是墙的原因,幸好google有git.kernel.org的镜像

    https://kernel.googlesource.com/
    5 replies    2017-06-06 10:19:49 +08:00
    sinxccc
        1
    sinxccc  
       Jan 30, 2013
    git clone --depth=1

    如果你只想 clone 一份代码,不关心历史记录的话。
    G2bN4dbX9J3ncp0r
        2
    G2bN4dbX9J3ncp0r  
       Jan 30, 2013
    @sinxccc 这样的话,有多少历史记录
    sinxccc
        3
    sinxccc  
       Jan 30, 2013
    @lidashuang depth=1 的话应该只有最近一次修改,而且没有 branch 信息。我凭印象说的,你可以找个小点的 repo 试试看或者翻翻文档。

    如果有历史记录需求的话可以把 1 往上加…
    swulling
        4
    swulling  
       Jan 30, 2013
    git clone慢有两种方法
    a. VPN
    b. VPS上clone,然后多线程下载。。如果你的VPS连接起来比较的慢的话
    heaventear
        5
    heaventear  
       Jun 6, 2017
    用 github 上的 https 来下。当然你还需要挂个加速器,不然国内网络访问外网会让你怀疑人生。我用的天路外网加速器,看他们的 github 加速教程,速度很快,https://91tianlu.cn
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2380 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:56 · PVG 23:56 · LAX 08:56 · JFK 11:56
    ♥ Do have faith in what you're doing.