We are using git rebase --onto
to pick commits from a branch to another branch. Let's say from for simplicity the develop branch to the release branch.
1----A----B----C----D----2----3----E----F---G----H----4----5----6 develop
Out of the above I need to merge all of the "character" revisions from develop into release, it is important to note that I need to ignore the numeric revisions.
So what we do is run the rebase onto for each grouping. For example in the above there are 2 groupings, A to D and E to G.
git rebase --onto release 1 D #rebase the first range of revisions from the develop branch and base it on the release branch
git rebase --onto release 3 H #rebase the second range of revisions from the develop branch and base it on the release branch.
The problem is that for each grouping we need to run this command which is not convenient.
Is there any way that I could run git rebase --onto
once and specify all the required revisions then in one single command