Staging Selected Files
git add takes a path, so you can stage only some of your changes. The status short format shows two columns: staged on the left, unstaged on the right.
Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
echo x > b.txt
echo y > c.txt
git add b.txt
git status --shortResult
A b.txt ?? c.txt
Exercise
Stage one file.
git add Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.