GIT: error: bad index file sha1 signature fatal: index file corrupt

Don’t worry, it is not as bad as it sounds! everything is in the repo. The solution is here thanks Arne for the solution:

https://makandracards.com/makandra/5899-how-to-fix-a-corrupt-git-index

As suggested in the post, I made a backup of the index before anything

rm .git/index
git reset
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s