Solution for the Git Index Error

I had been back and forth trying to get one of my git repos to work. It was always giving me the following error:

$ git status
error: bad index file sha1 signature
fatal: index file corrupt
fatal: git status –porcelain failed

Today, for a matter of luck, it also gave me another error wich pointed me out for the solution:

Counting objects: 1651, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1546/1546), done.
error: RPC failed; result=22, HTTP code = 413| 1.08 MiB/s
fatal: The remote end hung up unexpectedly
Writing objects: 100% (1650/1650), 646.51 MiB | 11.90 MiB/s, done.
Total 1650 (delta 91), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
fatal: expected ok/error, helper said ‘4004<?4??Ǧ 8?E??xv?y6????iBL?GI?gk????rD???b?’

After a small search I have found the answer for the issue on StackOverflow and it works awesome. It is pretty simple, it fails because the repo was set to work with HTTPS instead of SSH. Once you change, it works 100%.

The link for the StackOverflow answer:


About mcloide

Making things simpler, just check: View all posts by mcloide

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: