Bird
0
0

You need to merge four feature branches into main using an octopus merge, but one branch has conflicts. What is the recommended strategy?

hard📝 Workflow Q8 of 15
Git - Cherry-Pick and Advanced Merging
You need to merge four feature branches into main using an octopus merge, but one branch has conflicts. What is the recommended strategy?
ADelete the conflicting branch and merge the others with octopus
BForce the octopus merge ignoring conflicts to speed up integration
CMerge the conflicting branch separately after resolving conflicts, then octopus merge the rest
DMerge all branches one by one without using octopus merge
Step-by-Step Solution
Solution:
  1. Step 1: Recognize octopus merge limitations

    Octopus merges require no conflicts; if conflicts exist, they must be resolved first.
  2. Step 2: Choose best workflow

    Merge the conflicting branch separately after resolving conflicts, then octopus merge the rest suggests resolving conflicts separately, then merging others together, which is best practice.
  3. Final Answer:

    Merge the conflicting branch separately after resolving conflicts, then octopus merge the rest -> Option C
  4. Quick Check:

    Resolve conflicts separately before octopus merge [OK]
Quick Trick: Fix conflicts separately before octopus merge [OK]
Common Mistakes:
  • Forcing merge ignoring conflicts
  • Deleting branches without review
  • Avoiding octopus merge entirely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes