Branching, Merging and Resolving a Conflict · seed 1 · A4, ink-friendly. The answer key prints on its own page for grown-ups.

Merging work without losing meaning

Computing · Software Engineering · ages 18-19
Name ______________________   Date ____________
  1. When must a person step in?

    • When branches touch different files
    • When one branch is shorter
    • When both changed the same lines differently
  2. What is the shared base of a merge?

    • The ancestor both branches grew from
    • The longest file in the folder
    • The newest laptop on the team
  3. A rebase draws history into one straight line.

    Circle one:   True   False

  4. Why can the tool not decide a same-line clash?

    • Its battery runs low
    • It cannot know which meaning you want
    • It dislikes long files
  5. Main renamed a setting, feature rewrote its checks. What is the right resolve?

    • Keep the new name with the new checks, then test
    • Keep only main and drop the checks
    • Keep only feature and drop the rename
  6. What does a rebase throw away?

    • All the code itself
    • The true branching shape
    • The programming language
  7. Resolving well means always picking your own side.

    Circle one:   True   False

  8. Your branch is private and messy. A shared branch needs honest history. What do you do?

    • Rebase both branches at once
    • Merge your mess everywhere
    • Rebase yours, merge the shared one
LightMySky · lightmysky.comW1-mt_l3vFbU7L3E-s1

Answer key

For grown-ups. Fold this page away before handing over the rest.

Merging work without losing meaning W1-mt_l3vFbU7L3E-s1

  1. When both changed the same lines differently · Same-line clashes need a human meaning call.
  2. The ancestor both branches grew from · Merging starts from the common ancestor.
  3. True · Replaying commits onto one tip straightens the line.
  4. It cannot know which meaning you want · Meaning calls belong to people.
  5. Keep the new name with the new checks, then test · Combine both intents instead of picking a side.
  6. The true branching shape · Replayed history reads straight but loses what happened.
  7. False · Good resolves blend intents and test the blend.
  8. Rebase yours, merge the shared one · Straighten private work, keep shared history true.
Worksheet · LightMySky