I am looking for a way to make changes to function branches after combining them with the wizard. The goal is to save the feature branch containing only the commits associated with it.
It often happens that a function requires some additional polishing after it has already been pressed for mastering. Changes that were made for development during this time do not conflict with this function, which means that when additional work is implemented, the actual wizard may be rearranged in the branches of the attribute.
The following figure shows the situation:

The approach I have used so far: Rebase to control and combine functions back into the master

Against β the function branch is now dictated by parts from the master.

Question: What are the methods that you are taking in practice to solve this problem?
Code example
To describe the approaches below, this is the code to create the repo structure from the examples.
# mkdir test git init touch master-change-file git add master-change-file git commit -m "initial commit" echo 1 > master-change-file git commit -a -m "master commit 1" echo 2 > master-change-file git commit -a -m "master commit 2" git checkout -b feature echo 3 > feature-change-file git add feature-change-file git commit -a -m "feature commit 1" echo 4 > feature-change-file git commit -a -m "feature commit 2" echo 5 > feature-change-file git commit -a -m "feature commit 3" git checkout master git merge --no-ff feature -m "Merge branch 'feature'" git checkout feature echo 6 > feature-change-file git commit -a -m "feature commit 4" echo 7 > feature-change-file git commit -a -m "feature commit 5" git checkout master echo 8 > master-change-file git commit -a -m "master commit 3" echo 9 > master-change-file git commit -a -m "master commit 3" # gitk --all
git git-flow
TheMeaningfulEngineer
source share