If you have problem with git commands like ‘ git status,git pull ‘ etc. and got error message as follows,
$ git status error: bad index file sha1 signature fatal: index file corrupt
Don’t worry. Just remove your git index file and restore. To be safe make a backup of your index ‘.git/index ‘ before remove.
rm .git/index git reset