Resetting due to a bad git index file