📦 CHAPTER 2 · GIT COMMIT
Chef You

Seal the Recipe
Forever

Your ingredients are on the tray. Now you seal them in an envelope, stamp it with wax, and write a note on the front. That envelope is a commit — permanent, timestamped, and yours.

Scene I

From tray to envelope

Git Robot

Remember git add? You put ingredients on the tray — the staging area.

Now git commit takes everything on that tray, seals it in an envelope, and writes: who sealed it, when, and why.

That envelope can never be opened or changed.

🔏 COMMIT CEREMONY Write your commit message
📋 STAGING AREA (tray)
git commit
📦 COMMIT (envelope)
📝 COMMIT MESSAGE
A good commit message explains why, not just what.
Committed!

🎉 Your recipe is sealed

Scene II

The anatomy of a commit

Every sealed envelope contains:

🔑 Hash — a unique ID (like a fingerprint)
👤 Author — who made the change
📅 Timestamp — when it was sealed
💬 Message — why the change was made
📋 Snapshot — the exact state of all staged files
🔗 Parent — which commit came before this one

Epilogue
A commit is a sealed envelope.
Permanent, timestamped,
and uniquely yours.
📋
git add
Put on tray
🔏
git commit
Seal envelope
📚
history
Stored forever