The following error keeps repeating even after I’ve tried the recommended:
rm .git/index
git reset
But I still get this error:
error: bad index file sha1 signature
fatal: index file corrupt
fatal: 'git status --porcelain' failed in submodule '[directory path omitted]'
What's wrong? What should I do?
rm .git/index
- note the dot. However, you may want to read all the comments at “Index file corrupt”.