GitHub Clone Error: Cannot clone with EOF error

前端 未结 2 586
执笔经年
执笔经年 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条回答
  • 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.

    0 讨论(0)
  • 2021-01-15 00:24

    First check if the issue persists, because there were some issues this morning with GitHub.
    See its status history:

    Today
    6:52 UTC Everything operating normally.
    6:50 UTC Some GitHub pages are again unavailable. We are continuing to investigate. 
    

    If it does persists, check also if you can reproduce it on different computer/OS.
    As shown in this issue, if this really is because of some huge content, then test it with a shallow clone.

    0 讨论(0)
提交回复
热议问题