I’ve managed to work around this by:
- Locate the last commit that retained the order
- Run
git rebase -i <hash of that commit>
- Replace all
pick
withreword
- Run
git push -f
Before that, I tried changing only the first commit message, which also changes all the following hashes, but that didn’t fix it.
I had to do it for every following commit too for it to work.