I had that problem, and I try ti fix with this:
rm -f .git/index
git reset
BUT it did not work. The solution?
For some reason I had others .git folders in sub directories. I delete those .git folders (not the principal) and git reset
again. Once they were deleted, everything worked again.