Search code examples
gitgithubgit-clone

Git clone error - fatal: early EOFs


I want to clone a project from github to my PC with

D:\Projects> git clone https://github.com/***/***.git

But while downloading, several fatal error occur:

Cloning into '***'...
remote: Counting objects: 13197, done.
fatal: early EOFs:   1% (135/13197), 116.01 KiB | 6.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: index-pack failed
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054

What can I do in this situation? Could any one help?


Solution

  • That happened to me. That might be because of loosing connection while cloning heavy project.

    Method 1: Sometimes it gets solved by using https to clone from git.

    Method 2: Sometimes it gets solved by increasing the postBuffer size. Here is the article from my blog to guide you through how to increase the postBuffer.

    You can try any methods.