Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
git status and reading a diff card 2 of 6

Git compares now with your last snapshot

builds on: Git commits as snapshots you can return to
Your last commit is a saved snapshot. Git can compare the files on disk right now with it. `git status` gives the short answer: *which* files differ. It also lists new files git has never saved (**untracked**). `git diff` gives the long answer: *which lines* differ inside files git already tracks. One exception, staging, comes on the next card. Think of status as the table of contents and diff as the pages. Neither command changes anything, so run them as often as you like.
Terms on this card
git status
Command that lists which files differ from your last commit, which are staged, and which are new files git doesn't track yet. Changes nothing.
git diff
Command that shows, line by line, how tracked files differ from what was last saved or staged. Changes nothing.
untracked
A new file git has never saved. `git status` lists it, but `git diff` does not show its contents.
commit
A saved snapshot of the whole project with a message, which you can return to later.
command
A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
Learn this step by step on Bytewise
Lesson goal: Use `git status` to see which files changed and `git diff` to see exactly how. Read a unified diff's '-', '+' and '@@' lines without help. · the whole lesson