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 -sResult
M a.txt ?? n.txt
Exercise
Short status.
git status Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.