I have master branch and I have xx1 branch with 3 commits ahead (changes in file A) and 5 commits behind master (changes in file B) What is the safe way to merge xx1 branch to master branch ? should I merge first master to xxx1 ? or because files are different I can just merge my branch to master ?
Asked
Active
Viewed 79 times
1 Answers
1
Theoretically yes. You can merge and there might not be any merge conflicts as you said the files are different.
However, you can also rebase, which is a better option in my opinion. Rebase will make sure that all the commits are maintained individually.

Prabodh Mhalgi
- 805
- 9
- 25
-
do you mean I can merge xx1 to master without merging first master to xx1? – Imanez Nov 03 '16 at 10:33
-
1I don't see a reason why you cannot do that. However, that is not the best practice. – Prabodh Mhalgi Nov 04 '16 at 05:39