I have a couple of branches, and I want the changes from the second branch to appear in the first branch.
It's probably best described with a diagram:
X - Y - Z (branch-2)
/ \
A - B - C - D - E - F (master)
\
G - H - I (branch-1)
I want to merge X
, Y
, Z
into branch-1
without bringing B
and C
.
I tried to cherry-pick merge-commit F
, and although I specify the correct parent (I think), the cherry-pick fails with: The previous cherry-pick is now empty, possibly due to conflict resolution.
Should I cherry-pick the X^..Z
range? Or is there a better way to do it?