Staging Area Concept
Concept Check Medium
Question
What are the three areas in Git's data model?
Hint
Think about where files exist at different stages.
Explanation
Git has three areas: (1) Working directory — your current files on disk, (2) Staging area (index) — changes marked for the next commit, and (3) Repository (history) — committed snapshots. git add moves from working to staging; git commit moves from staging to repository.
Related Resources
Related Lessons
Related Cheatsheets
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.