After a failed rebase, I have the following error:
$ git status
fatal: unordered stage entries in index
To fix the error:
$ rm .git/index
$ git reset
Then to reset and clean the git head:
$ git reset --hard && git clean -f -d
See source
After a failed rebase, I have the following error:
$ git status
fatal: unordered stage entries in index
To fix the error:
$ rm .git/index
$ git reset
Then to reset and clean the git head:
$ git reset --hard && git clean -f -d
See source