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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -