Solved git error – fatal: unknown index entry format 0x16700000

Recently we did one find and replace in our existing git using command mentioned at “Grep and replace string from source code using command in Linux” but this somehow broke our git and we got a following error when tried to do git status,

$ git status
fatal: unknown index entry format 0x16700000

Solution : This error can be resolved as,

$ rm -rf .git/index 
$ git reset

And now if you check git status, it will show the results as expected after recovering from above error.

Follow Lynxbee Posts with Google News

Leave a Comment