🔀Staging Area
Also known as Index, Stage, git add
The place where you pick which changes go into your next commit.
Think of it like
Think of it like a box you pack before you post it. You choose what goes in, then seal it.
Example
Emma fixed a typo and started a new page. She stages only the typo fix and commits it on its own.
Why it matters
Small, focused commits are easier to read, review and undo. Staging is how you make them.
Definition
Example code
console
$ git add index.html
$ git status --short
A index.htmlCommon mistake
Key takeaways
- 1Pick what goes in. Only staged changes get committed.
- 2Added with git add. One file or many at once.
- 3Clean commits. Split work into clear steps.