There was two long parallel running Git branches - e.g. master and featureXY. Because of conflicts I had to cherry-pick commits from featureXY into master (and do some manual modifications). Now we have all changes "merged" back to master, but we need to featureXY branch stay open to make future develop changes.
I did a cherry-picking with this command:
git cherry-pick -x {SHA-1}
But when now I run to get all changes that do not exist in master
git cherry -v master featureXY
I get all the changes, even those that were cherry-picked and manually edited.
Question: is there some command to ensure that when I run
git checkout master
git merge featureXY
to do not harm all previous cherry-picked commits? Some kind of "do not merge commits before this commit" command?