Regardless of the error code at the end of
fatal: Unknown index entry format
your git index file is corrupt. (I achieved this error after doing a find and replace for all files.)
If using a Windows Command Prompt,
del .git\index
will delete the index file and
git reset
will reset it.