git status & git log
git status and git log are the two most-used read-only commands in Git. Status shows the current state of your working directory. Log shows the history of committed snapshots. Run them constantly — they never change anything.
01.git status — Your Working Directory Dashboard
git status shows three zones: (1) Changes staged for commit — green, ready to commit. (2) Changes not staged — modified files Git is tracking but not yet added. (3) Untracked files — files Git sees but ignores until you add them. The short form (-s) is great for a quick one-line overview.
02.git log — Reading Project History
git log shows commits newest-first. Each entry shows: the SHA hash (unique ID), author name and email, date and time, and the commit message. Use --oneline for a compact view, --graph to see branch topology, --all to include all branches, and combine them for a powerful repository overview.
Commands
What does git status show you?