Tsallaka zuwa abun ciki
Justice Tech School

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 --short

Result

A  b.txt
?? c.txt

Exercise

Stage one file.

git add 

Quiz Test

What does A in the left column mean?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.