Git · Middle · Question 35 of 75

What does git rebase --onto main old-base feature do?

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.

Further reading

Problem with a question

Git · Middle · question 35

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz