I have the following branches:
master
test1
, which was created frommaster
test2
, which was also created frommaster
.
I've done multiple commits on the test1
branch, and also, since I created the test1
branch, I've created multiple commits on master
.
There are also commits on test2
, which I intend to merge back into master
later.
The thing right now is that I need my changes from master
, and if possible, from test2
on test1
.
I want to know if I can merge master
into test1
, so I get the commits from master
on test
, and after I finish my feature on test1
, merge that again to master
. Is that possible? Or it will raise conflicts?
Is it possible to merge also test2
into test1
, then merge test2
into master
, and, finally, merge test1
into master
?
Will Git understand that some commits are already merged into the branch that is being merged?