git - Merge changes from grandchild branch without touching direct child? -
we had branch a
. needed improve functionality b
planning on working on using function a
. branched out a
branch b
. then, wanted improve specific functionality in a
qualitative boost in performance of b
branched out b
, created c
.
my question is, what's best way changes add in c
, put them in a
without changes b
. should use cherry pick in cases this? there superior way accomplish this? result in messy error in git?
one cleaner way branch c
a
, not b
.
, merge c
a
, rebase b
on top of a
(or rebase b
on top of c
, while c
isn't yet merged on a
).
if branch c b , cherry-pick, might have issues later on when merge b (which might include c enhancement) a.
because cherry-picking can introduce duplicate commits and/or functional dependencies.
cherry-pick 1 branch when know never merge "one branch" anyway.
Comments
Post a Comment