Explore

Git Essentials: The Everyday Commands

by Froga

The Git ideas the Git & GitHub lab leans on: the staging area, what a commit and a branch really are, merging, and the difference between undoing safely and rewriting history you already shared. About ten minutes.

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 folder (where you edit), the staging area (what the next commit will contain), and the history (what is already committed). git add moves a change from the first to the second.

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

multiple choice

Agit commit
Bgit add
Cgit push
Dgit 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.