Git Add Stage
Multiple Choice Beginner
Question
What does git add do?
Hint
git add moves changes to the staging area.
Explanation
git add stages modified files, preparing them for the next commit. The staging area (index) is a buffer between your working directory and the repository. git add . stages all changes. You can add specific files: git add file.txt. Only staged changes are included in the next commit.
Related Resources
Related Lessons
- Git Add
Learn git add.
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.