The tools nobody teaches

Pro lesson All levels

Branches are just pointers

A branch is one tiny file holding a hash. See it, make branches, work in parallel and merge it all back.

13 min7 hands-on steps

In this lesson you will

  • What a branch really is, on disk
  • Work on two things at once
  • Merge work back together, two ways

Words you'll meet

Branch
A name that points at one commit, and moves forward when you commit.
Merge
Bringing another branch's work into the one you are on.
Fast-forward
A merge that only moves a pointer, because nothing needs joining.

The steps

Each step teaches one idea, then has you try it hands-on in your browser, and checks your work.

  1. 1What a branch really is
  2. 2See it for yourself
  3. 3Make a branch
  4. 4Work on the branch
  5. 5Two lines of work
  6. 6Merge
  7. 7Challenge

This lesson is part of LearnDE Pro

$12 a month or $100 a year: every lesson, spaced-repetition flashcards, and Learn by teaching. Refund on request within 14 days.