Problem Statement
When would you use `git rebase --onto <newbase> <upstream> <branch>`? Give a practical example.
Explanation
Use it to transplant a range of commits onto a different base, skipping earlier ones. Example: move `featureA` commits that diverged from `topic` onto `main`: `git rebase --onto main topic featureA`.
Practice Sets
This question appears in the following practice sets:
