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

Reading git status and git diff

builds on: Git commits as snapshots you can return to
Run from inside the project: - `git status`: `modified:` and `deleted:` are changed tracked files. **Untracked files** are brand-new; `git diff` skips them, so open them yourself. - **Staged** means marked with `git add` to go into the next commit. Status lists these under **Changes to be committed** and the rest under **Changes not staged for commit**. - `git diff`: unstaged line changes. `git diff --staged`: staged ones. `git diff <file>`: one file only. - `-` removed, `+` added, unmarked = unchanged context. - Long output opens in a pager: space scrolls, `q` quits.
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.
git diff --staged
Shows line changes you have already staged with `git add`, which plain `git diff` leaves out.
git add
Command that stages changes, marking them to go into the next commit.
tracked
A file git already knows about because it was committed or staged before. Git can show line changes only for tracked files.
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