I have different feature branches and one main branch:-
main
feature1
feature2
feature3
feature2 and feature3 branches are behind master by a few commits. Before that feature1 branch is ahead of the main branch.
Firstly feature3 needs to merged and then feature2.
I want to merge all the feature branches in a way that i dont lose the contents and moreover the new contents needs to be added. In the end the data of all the feature branch should be in the main branch.
I am confused like should I first merge the feature1 branch as its ahead of the main branch or first I merge feature3 first and feature2 into the feature1 branch and create a pull request from the feature1 branch. Also which are the commands that i can use in order to accomplish this?
The files in all feature 1, 2, 3 is modified and because of that i am facing merge conflict error.
What i did:- Firstly i created a dummy branch from the main branch. Merged the changes of feature3 branch in to the dummy branch. Now when i am trying to merge the feature2 branch into dummy branch doing so i am getting merge conflict error.
can someone guide me here?