Git Expert · Lesson 1 · On the house

Octopus and ours strategies

Multi-parent merges and strategy options. Lesson 1 is free — on the house.

Lessons · Git Expert · Lesson 1 of 10 · On the house

Octopus and ours strategies

Multi-parent merges and strategy options.

Illustration for Git
Lesson 1 is on the house.

An octopus merge joins more than two heads in one merge commit when no conflicts arise.

Strategy -s ours records a merge but keeps our tree — useful for voiding a side branch's content.

ours/theirs during conflicts depend on merge vs rebase direction — verify which side is which.

Octopus refuses conflicting merges; fall back to pairwise merges when needed.

These are specialized tools — prefer ordinary merges unless you have a clear graph reason.

octopus

git merge -s ours obsolete-topic
Match this when you type.

Quiz

What is an octopus merge?

Quiz

merge -s ours keeps?

Quiz

Octopus merges typically require?

Quiz

ours/theirs confusion appears because?

Check

Match the still for: Octopus and ours strategies.

Open-book: the answers are on this page. Pass every quiz and check (5) to mark the lesson done. This visit: 0/5.