🥚

lvl_1 hatchling

0xp

[░░░░░░░░░░░░]
~/quest-map/level_0450m · Level 4 · Time Traveller
🌿 Branches

Parallel Universes

🔤 4 man pages🛠 3 tasks🎯 5 checks🧠 4 questions🏅 Branch Ranger

level_progress

0%

[░░░░░░░░░░░░░░░░]

steps 0/13 · xp 0/190

…running
▮$ cat ./story.txtm4.story

» Your Twin steps out of a doorway that wasn't there yesterday. “Whatever you're scared of ruining,” she says, “let me do it over here instead.”

┌─[objectives]

on exit you can…

  1. 01Explain a branch as a safe copy where experiments happen.
  2. 02Name main as the official version of the project.
  3. 03Create a branch, switch between branches, and edit inside one.
  4. 04See how far a branch has drifted from main.
  5. 05Understand why teams never edit main directly.

$ man --list

# read the plain-english line, then the analogy, then say the last one out loud. # tick it when it clicks — 10xp each.

40xp available
▮man branch#110xp

🌿 Branch

A copy of your project that you can change freely without touching the official version. Changes stay separate until you decide to bring them home.

# analogize

A parallel universe — or tracing paper laid over a drawing. Scribble all you like; the original underneath is untouched.

$ echo "say it out loud"

“A branch is a safe scratch copy where I experiment.”

▮man main#210xp

🏠 main (the default branch)

The official, published version of your project. When someone visits your repo, this is what they see.

# analogize

The final copy of the essay you hand in. Branches are the rough drafts on your desk.

$ echo "say it out loud"

“main is the official copy everyone sees.”

▮man switch#310xp

🔀 Switching branches

The dropdown button near the top-left of the file list that says 'main'. Click it to type a new branch name or hop to an existing one. The whole page changes to show that universe.

# analogize

A channel button on a TV. Same room, different universe on screen.

$ echo "say it out loud"

“I always check which branch I'm on before I edit.”

▮man ahead-behind#410xp

📏 Ahead / behind

GitHub counts how many commits your branch has that main doesn't: 'This branch is 2 commits ahead of main'.

# analogize

How many pages of your draft aren't in the official copy yet.

$ echo "say it out loud"

“Ahead means my branch has new saves that main is missing.”

$ run ./tasks --hands-on

# everything happens in your browser at github.com — no installs, no terminal on your own # machine. tick each step, then bank 15xp when the task finishes.

▮run make-branch--mode=solo --min=12 --step=115xp

Open a doorway

progress 0/4

=> output

A second universe exists, and you're standing in it.

▮run edit-branch--mode=solo --min=15 --step=215xp

Experiment wildly (safely)

progress 0/4

=> output

Proof that branches isolate changes.

▮run compare--mode=solo --min=10 --step=315xp

Measure the drift

progress 0/3

=> output

You can explain exactly what is different between the two universes.

!! recover

If the branch dropdown shows nothing, you may be on a cached page. Refresh — the branch is there.

▮./mission_04--verify --strict50m

Mission 4 · Fork the Timeline

Create a parallel universe, live in it, and prove the official copy never flinched.

0/5

[░░░░░░░░░░░░]

[loot] reward on completion

Badge: Branch Ranger · +80 XP

unlock_condition: 4 man pages + 3 tasks + 5 mission steps + diagnostic ≥ 75%.

▮./diagnostic--level=m4 --questions=4 --pass=75%not passed · 25xp

# unlimited retakes, no penalties. every answer prints the reason.

Q1> A branch is…

Q2> What is 'main'?

Q3> You created a file on a branch, then switched to main and it's gone. What happened?

Q4> Why do teams avoid editing main directly?

answered 0/4
▮$ cat must-know.txt
  • [+]Branch = safe scratch copy.
  • [+]main = the official version visitors see.
  • [+]Where the branch dropdown is and how to switch.
  • [+]Check which branch you're on before editing (this prevents 90% of beginner confusion).
▮$ cat defer.txt
  • [~]Branch protection rules — locks main so changes must come via pull request.
  • [~]Default branch renaming and setting.
  • [~]Deleting branches (we do this at the end of Module 5).
  • [~]Git terminology like HEAD, checkout, and detached states — firmly a 'later' topic.

$ ls ./deliverables -l

taskmodetimeoutput
Open a doorwaysolo12mA second universe exists, and you're standing in it.
Experiment wildly (safely)solo15mProof that branches isolate changes.
Measure the driftsolo10mYou can explain exactly what is different between the two universes.

🎒 man gitquest --operator (this level)

  • # The 'my file disappeared when I switched to main' moment is the lesson. Let it happen, then let them switch back.
  • # Draw a Y-shaped fork on a whiteboard once. Never more than once.
  • # Pair mode works beautifully here: one learner drives, one calls out which branch you're on before every click.
▮$ ./unlock --achievementexit 1
🔒

achievement

Branch Ranger

You can now try anything without risking anything.

locked · clear this level to unlock