Search code examples
gitgithubrepositoryclonedelta

Can't git clone from github. remote: fatal: failed to apply delta


Since a few days, one of my GitHub repository seems to be corrupted.
When trying to clone the repository with the following command line :

git clone [email protected]:MyAccount/MyRepository.git

I get the following output :

Cloning into 'MyRepository'...
remote: fatal: failed to apply delta
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

Moreover, when some people of my team can still pull the repository, while some people can't getting this error:

git pull
remote: fatal: failed to apply delta
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

Does anyone know what could have happened and/or how to fix this ?


Solution

  • GitHub is currently facing issues with ssh access (see GitHub status history)

    We are currently investigating SSH access problems on one of our fileserver pairs. A small number of repositories may be affected.

    So first check if the cloning problem persists with an https url:

    git clone  https://github.com/MyAccount/MyRepository
    

    If the problem persists, then you need to contact GitHub support, asking them for a git fsck, as in this question.