I created 2 branches from master at about the same time to work on 2 different features. But in the process of working on them, I will have to make different changes to the same class A
in both of these 2 branches. Moreover, the same class A
has already been changed in master after I created my branches. And when I created a merge request into master from first of them, it shows me there are conflicts. How can I resolve these conflicts in the most painless way possible?
Both of these branches are not in master yet, I don't have permissions to merge them into master and it will be done by other engineers and only after codereview. But how can I now merge these branches with each other before codereview in order to avoid conflicts in the future when I merge both of my branches into master?
I have already totally finished my work on 1st branch and created merge request for my 1st branch, I just have to pull master changes and resolve conflicts. And on the 2nd branch, I have so far worked only on other classes, and have not started implementing changes in class A
yet. What should I do in this situation? And which git commands to use? I'm new in git. First of all need I merge master with 1st branch having with a created merge request? Then merge 1st updated branch into 2nd branch which not having changes in class A
yet? I can’t push any my changes into master. Only after the review and not by me. Now I just want to resolve all conflicts to the maximum before future merge into master of both my branches.
Most importantly, I want there to be no conflicts during merge into master after codereview. Can I somehow merge these 2 my branches to achieve this? How exactly? And while leaving two different merge requests for code review? So that every merge request is for separate feature