urmyfaith
V2EX  ›  GitHub

github 下载文件可以断点续传不?

  •  
  •   urmyfaith · Feb 27, 2015 · 13329 views
    This topic created in 4092 days ago, the information mentioned may be changed or developed.

    github 下载文件可以断点续传不?

    git仓库文件数太多,体积也比较大,使用

    git clone [email protected] 来下载的话,经常会出现

    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    远程挂起,提前结束,下载失败.
    

    问题是:

    clone文件可以断点续传么?

    如果可以,该怎么做?

    Supplement 1  ·  Feb 27, 2015
    @yfdyh000 提到的,

    参考http://my.oschina.net/bygreencn/blog/347491的方法.
    5 replies    2015-03-01 10:48:21 +08:00
    yfdyh000
        1
    yfdyh000  
       Feb 27, 2015
    http://m.oschina.net/blog/347491 的方法(我没试过),git init 一个空库然后 git fetch url
    infinet
        2
    infinet  
       Feb 27, 2015
    不能。记得曾经有个google summer of code项目打算增加这个功能,后来没下文。

    有个权益之计,可以先shallow clone
    git clone --depth=1 xxxx

    以后需要时再unshallow(新版git),不支持unshallow的老版git用
    git fetch --depth=2147483647 xxxx
    抓取所有历史。
    urmyfaith
        3
    urmyfaith  
    OP
       Feb 27, 2015
    @yfdyh000

    感觉这个方法可以,试试...

    谢谢.
    cnnblike
        4
    cnnblike  
       Feb 27, 2015 via Android
    先在vps上git clone然后压缩,接着用ftp下载下来吧
    ryd994
        5
    ryd994  
       Mar 1, 2015 via Android
    clone到一半中断,文件应该还在,正常接着pull应该就可以了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3563 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 10:50 · PVG 18:50 · LAX 03:50 · JFK 06:50
    ♥ Do have faith in what you're doing.