GitHub Clone Error: Cannot clone with EOF error

前端 未结 2 607
执笔经年
执笔经年 2021-01-14 23:45

I am trying to clone my project from GitHub private repo using Ubuntu 13.04.

I am getting error as below all the time

error: RPC failed; result=18, H         


        
2条回答
  •  旧时难觅i
    2021-01-15 00:13

    I do believe that this is caused by a repository that is too large (because I believe I got the same error when I tried to check out (i.e., clone) a repository that was larger than 1 GB.). That suspicion was also raised by isherwood in StackOverflow: Pull large repository (more than 1GB size) over http fail

    So, this post here is a copy of the solution I've posted in the before-mentioned link.

    1. git clone --depth 1 YOUR-URL-TO-CLONE ./
    2. git fetch --unshallow
    3. git pull

    For more information about the meaning of 1., i.e., a shallow clone, see StackOverflow: Is it safe to shallow clone with --depth 1, create commits, and pull updates again?

    For more information about the meaning of 2., see StackOverflow: https://stackoverflow.com/questions/6802145/how-to-convert-a-git-shallow-clone-to-a-full-clone.

    Regarding 3: This is, I believe, just to double-check. At least for me that did not bring me any updates.

提交回复
热议问题