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 6 of 6
Status for which, diff for how
builds on: Git commits as snapshots you can return to
`git status` tells you which files changed and which are new. `git diff` shows exactly how, line by line: `-` removed, `+` added, unmarked = context, and `@@` = where each section starts. Read those yourself instead of taking a summary's word for what changed.
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.
- context
- Unmarked lines in a diff that did not change. They are shown only so you can see where the change sits.
- summary
- The message the agent writes at the end saying what it did. It is the agent's own claim, not a check.
- git
- A tool that records versions of a project's files over time. Its data lives in the hidden `.git` folder.
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