🌿 CHAPTER 3 · GIT BRANCH
Chef You

Parallel
Kitchens

Imagine you could clone your kitchen, experiment with crazy recipes in the copy, and the original stays untouched. That's a branch.

Scene I

One kitchen, many experiments

Chef You

Your main branch is the official recipe book — the one customers eat from.

But you want to try something wild: spicy chocolate cake.

You don't experiment on the main recipe. Instead, you create a parallel kitchen — a branch — where you can try anything without risking the original.

🌿 BRANCH VISUALIZER Click buttons to build the tree
📦 Commit on main
🌿 Create branch
📦 Commit on branch
📦 Commit on main
🔀 Merge back
Merged!

🎉 The experiment succeeded

You branched off to experiment, committed your changes safely, and when you were happy — merged them back into the main recipe.

The original recipe was never at risk.

$ git branch feature/spicy-cake
$ git checkout feature/spicy-cake
# ... experiment freely ...
$ git checkout main
$ git merge feature/spicy-cake
✓ Merge complete. The best of both worlds.
Epilogue
A branch is a parallel kitchen.
Experiment freely.
Merge when ready.
🍰
main
Official recipe
🌶️
branch
Experiment zone
🔀
merge
Combine the best