Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A rebase after an interactive rebase swaps the commits #976

Closed
m-beelman opened this issue Jun 20, 2022 · 1 comment
Closed

A rebase after an interactive rebase swaps the commits #976

m-beelman opened this issue Jun 20, 2022 · 1 comment

Comments

@m-beelman
Copy link

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.

@m-beelman
Copy link
Author

Already commented issue #977 is similar to this. I close the issue with a reference to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant