I have a project called Proyect
that has three ( 3 ) branches:
master
( M ) sdev
( S ) test
( T ) Which at the moment are like this:
initial commit
↓
↓
↓ merge test into master
↓ checkout -b sdev master
↓ ↓
↓ ↓
M------*------------------------------* # HEAD
\ / \
\ / \
\ / \
T-------\--------\--------------* # commits behind master
\ \
\ \
S-*--*---*---------* # commits behind test behind master
↑ ↑ ↑
↑ ↑ ↑
↑ ↑ ↑
↑ ↑ merge test into sdev
↑ ↑
↑ ↑
↑ commit 2 que quiero pushear directamente a master
↑
↑
commit 1 que quiero pushear directamente a master
What I want to do and I do not know is to make a merge
specific to the commit 1
and the commit 2
of the branch sdev
directly to the branch master
without affecting anything in the commits
later of the branches sdev
and test
, I mean, I would like something like this:
M------*------------------------------*-*--* # HEAD
\ / \ ________________↑ ↑
\ / \ / _________________↑
\ / \ / /
T-------\-------*-*------------------* # commits behind master
\ / /
\ / /
S-*--*---*--------------* # commits behind test behind master