Skip to content
Discussion options

You must be logged in to vote

Just one example out of many: suppose you have two release branches, "main" and "develop". You start a feature branch off of "develop", and then after a while you decide you want to move it to "main" instead. You can't just select main and hit "r", because this would not only rebase the commits of your feature branch, but also all commits between it and main, so the result would not be what you want. In this situation you would select the commit on "develop" that your feature branch forks off of, mark it as the base commit for rebase, and then select main and hit "r".

Basically you need it any time you would have used "rebase --onto" on the command line. If you google for that, you'll fin…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mloskot
Comment options

Answer selected by mloskot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants