Skip to content

Instantly share code, notes, and snippets.

@remarkablemark
Last active November 20, 2018 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remarkablemark/b4801144705ea323d89d1297bafd94b2 to your computer and use it in GitHub Desktop.
Save remarkablemark/b4801144705ea323d89d1297bafd94b2 to your computer and use it in GitHub Desktop.
git error: unordered stage entries in index

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment