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 4 of 6

Walking through one real change

builds on: Git commits as snapshots you can return to
`git status` lists `modified: src/cart.py` and an untracked `notes.txt` you never asked for. Open that file yourself. Then run `git diff` (next card). `@@ -2,5 +2,6 @@` means this section starts at line 2. It is 5 lines long in the old file and 6 in the new one. One `-` line and two `+` lines: `s += it.price` now runs only when the price is not `None`. So the fix *skips* unpriced items. Did you want that?
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.
None
Python's value for 'nothing here', for example a price that was never filled in.
git
A tool that records versions of a project's files over time. Its data lives in the hidden `.git` folder.
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