Git · Middle · Question 35 of 75
What does git rebase --onto main old-base feature do?
- ✓Correct answer: Moves commits after
old-baseonfeatureontomain - 2Renames
featuretomainand deletesold-base - 3Merges
old-baseandfeatureintomain
Explanation
It's for branches started from another feature branch: when the parent is merged or rewritten, --onto transplants only your own commits to the new base.