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 tspbecame1 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.mdCopies 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.