Skip to the workspace
Pebellslearn by building
Learn the Basics  ›  Lesson

What Version Control Is, and Why You Want It

What is Version Control? 12 minA version control system records snapshots of a project with who, when and why, so you can go back, compare, experiment and collaborate.

git github / What Version Control Is, and Why You Want It

Explore each scene at your own pace.

01 · The rule

The rule

What Version Control Is, and Why You Want It

Asha keeps her favourite recipes in a folder called recipe-box. Last week she "improved" the pancake recipe, the pancakes came out flat, and now she cannot remember how much baking powder the old version used. Her folder only knows how things are now. Version control is the tool that remembers how things were.

The rule

Version control saves snapshots, so any past state is one step away.

A version control system (VCS) watches a folder of files and, whenever you ask, records a snapshot of all of them together. Each snapshot comes with:

  • who made it,
  • when it was made,
  • a message saying why.

The chain of snapshots is the project's history. With it, Asha can:

  • Go back: see the pancake recipe exactly as it was on Monday.
  • Compare: ask "what changed between Monday and today?" and see the one line where 2 tsp became 1 tsp.
  • Experiment safely: try a vegan version on the side without touching the working recipe.
  • Work with others: her brother can add recipes at the same time, and the tool combines both sets of changes.
  • Know why: every change carries a note, so "why is there salt in the chai?" has an answer.

Compare that with the manual method everyone starts with:

pancakes.md
pancakes-old.md
pancakes-final.md
pancakes-final-REALLY.md

Copies like these tell you nothing about what changed or why, they fill the folder with clutter, and they fall apart the moment two people edit at once.

Version control is not only for code. Anything made of text files — recipes, essays, configuration, documentation, website content — benefits in the same way.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.