Bird
0
0

You want to combine octopus merge with a rebase workflow. Which sequence is correct?

hard📝 Workflow Q9 of 15
Git - Cherry-Pick and Advanced Merging
You want to combine octopus merge with a rebase workflow. Which sequence is correct?
ARebase main onto each feature branch, then merge branches separately
BRebase each feature branch onto main, then octopus merge all rebased branches into main
COctopus merge all branches first, then rebase main onto the merged commit
DMerge branches separately, then rebase each onto main
Step-by-Step Solution
Solution:
  1. Step 1: Understand rebase before merge

    Rebasing feature branches onto main updates them to latest main state.
  2. Step 2: Perform octopus merge after rebasing

    After rebasing, octopus merge combines all updated branches cleanly into main.
  3. Final Answer:

    Rebase each feature branch onto main, then octopus merge all rebased branches into main -> Option B
  4. Quick Check:

    Rebase branches first, then octopus merge [OK]
Quick Trick: Rebase branches on main before octopus merge [OK]
Common Mistakes:
  • Merging before rebasing causing conflicts
  • Rebasing main onto branches instead of reverse
  • Merging branches separately without octopus

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes