Git Add Command Quiz
Multiple ChoiceBeginner
Question
What does `git add filename.txt` do?
Hint
git add is the step before git commit.
Explanation
git add moves changes from your working directory into the staging area, marking them as ready to be committed. It does NOT save anything to the repository history — that is what git commit does. The staging area is a middle step where you choose which changes to include in the next commit.
Related Resources
Related Lessons
- Git Add
Learn how to stage changes with git add.
Related Cheatsheets
- Git Cheatsheet
Quick reference for Git commands.
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.