When your index is broken you can normally delete the index file and reset it.
rm -f .git/index
git reset
or you clone the repo again.
When your index is broken you can normally delete the index file and reset it.
rm -f .git/index
git reset
or you clone the repo again.