I am sure this question is duplicate, but I am not able to find the right answer because of too many answers being returned and each one is not working for me.
I have branch A with commits 1 -> 2 -> 3 -> 4 -> 5 -> 6 (commit 6 is the most recent).
I have branch B with commits 1 -> 2 (2 is the most recent)
I just want to move commit 6 from branch A to branch B. So 3, 4, 5, should remain in branch A.... I just take commit 6 and move it to branch B.
The end result I want is
A = 1 -> 2 -> 3 -> 4 -> 5 -> 6 B = 1 -> 2 -> 6
is this possible? and sorry if this is FAQ, duplicate or just illogical.
I googled but all answers I found pointed me to conclusion that every commit before 6 will also move... so there is no way for me to take 6 without taking 3, 4, 5
I googling I found this tutorial
https://ariejan.net/2010/06/10/cherry-picking-specific-commits-from-another-branch/
but here also, once the cherry pick is done both the commits 76cada - 62ecb3 move to master. I want only 62ecb3