Step 01 / 16
The analogy: the photographer's notebook
Before diving into technical vocabulary, here is an analogy that will guide you throughout this chapter. Imagine a photographer documenting a construction project:
- The camera = the Working Directory (your work folder)
- The selection tray = the Staging Area (you choose which photos to keep)
- The photo notebook = the Repository (the complete album, the history)
- A page in the notebook = a Commit (a dated photo with a caption)
- A bookmark = a Branch (a marker placed on a page)
- The open page = HEAD (the page you are currently looking at)
The analogy
We will come back to each element as we go through the chapter. For now, keep the big picture in mind: Git is a photographer's notebook that documents each step of your project.
- 📷 Your camera
- — Working directory (your working folder)
- 🗂️ The selection tray
- — Staging area (files ready to save)
- 📖 The notebook
- — Repository (the history of your saves)
- 📄 A notebook page
- — A commit (a full snapshot)
- 🔖 A bookmark
- — A branch (a pointer to a page)