Is there a way in Git to converge 2 branches with a single command?
Suppose I have a branch feature1 where I'm developing a feature and another branch feature2 where I'm developing another feature.
Now I would like to converge the 2 features since the development of feature1 needs something developed on feature2 branch and vice-versa.
AFAIK, I can achieve this by doing 2 merge, checking out feature1, merge feature2 into it, then checking out feature2 and merge feature1 into it.
Is there a way to make the 2 branches converging into 1 point of merge with a single command? Next they continue again in their 2 separate branches.
feature2intofeature1and that would be your convergence point. Then you point yourfeature2branch to it and here you gofeature2branch to it"? Delete branch `feature2' after merge and create it again?feature2and then I create it again (since development will continue on it even after merge) what happen to other people working on it after I pushed it?origin) you are just deleting its ref, not all the commits the branch is made of. If someone push againfeature2to origin then anotherfeature2ref will be created (if allowed), with the same history of the old one. Be careful when deleting a branch someone else is working on