Closed m-beelman closed 2 years ago
I first created a feature branch with two commits and swapped those two commits in order with an interactive rebase. Afterwards I wanted to perform a rebase on the main branch. After the rebase the (swapped) commits were in their original order.
These are the commands I used:
$ git checkout -b Feature $ git commit $ git checkout - $ git commit $ git checkout - $ git commit $ git rebase -i C1 $ git rebase main
Attached also the exported tree. rebase_rebase_issue.zip
I used the official https://learngitbranching.js.org/ website.
Already commented issue #977 is similar to this. I close the issue with a reference to that.
I first created a feature branch with two commits and swapped those two commits in order with an interactive rebase. Afterwards I wanted to perform a rebase on the main branch. After the rebase the (swapped) commits were in their original order.
These are the commands I used:
Attached also the exported tree. rebase_rebase_issue.zip
I used the official https://learngitbranching.js.org/ website.