Skip to content
Justice Tech School

Reading git status

git status shows staged, unstaged and untracked files. -s gives a short form: ?? untracked, A added, M modified.

Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
echo two >> a.txt
echo n > n.txt
git status -s

Result

 M a.txt
?? n.txt

Exercise

Short status.

git status 

Quiz Test

What does ?? mean?

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