🌀 CHAPTER 3 · GIT CHECKOUT
Chef You

Teleport Between
Kitchens

You have multiple kitchens (branches). git checkout lets you teleport between them — instantly swapping everything on your counter.

Scene I

One chef, many kitchens

Chef You

Your main kitchen has the official recipe. Your feature kitchen has an experimental chocolate glaze. Your hotfix kitchen has an urgent temperature fix.

git checkout doesn't copy files — it replaces your entire working directory with the version from that branch. Like teleporting to a whole different kitchen.

🌀 BRANCH TELEPORTER Click a branch to switch
HEAD
Switches: 0 / 3
Expert teleporter!

🎉 You can switch freely

You've seen how checkout swaps your entire workspace. Each branch has its own version of your files — and switching is instant.

Pro tip: git switch is the modern, less confusing replacement for checkout (switching branches only).

$ git checkout feature/glaze
Switched to branch 'feature/glaze'
$ git switch main # modern equivalent
Switched to branch 'main'
Epilogue
Checkout is teleportation.
Same chef, different kitchen,
different recipe.
git checkout
Classic way
git switch
Modern way