Explore

Git Essentials: The Everyday Commands

by Froga

The dozen Git commands you actually use daily — staging, branching, and the difference between undoing work safely and rewriting history you have already shared.

You're previewing this room. Log in or create a free account to answer the questions and track your progress.
Study material

Git has three places a change can live: your working directory (edited but untracked), the staging area (marked for the next commit), and the repository history (committed). git add moves changes from the first to the second.

Which command moves a modified file into the staging area, ready to be committed?

multiple choice

git commit
git add
git push
git stage
Staging happens before committing, not after.
Log in to answer

Ready to test yourself?

Sign up free to answer, score points, and build your streak.