Having such a situation in git graph:
dev *
\_ featureA
\_ featureB
and I requested merges for each of the features to the dev
branch.
Both features are developed in parallel and are going to be merged in the same time.
The merge request of the branch featureA
has been accepted and now when my colleague wants to merge featureB
he sees merge conflict because in CMakeLists.txt
in the root directory both of the features add a line in the file at the same place; in featureA
:
CMakelists.txt:10:
add_subdirectory(featureA)
in featureB
:
CMakelists.txt:10:
add_subdirectory(featureB)
The question is should he resolve this merge conflicts by hand or should I rebase the branch featureB
locally and then repush the branch or maybe there is something wrong in the workflow and other approach should be taken when having such a situation?