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 commits as snapshots you can return to
card 2 of 6
A commit is a photo of the whole project
builds on: Terminal basics: where you are and running things
**git** is a program that keeps the history of a folder. Running `git init` in your project root turns that folder into a **repository**. git adds a hidden `.git` folder where it stores the history. A **commit** is a saved snapshot of every file git tracks. It also records a message, an author, a time and a unique id, usually shown in short form like `3f2a9c1`. Once made, a commit never changes. Later edits can only become new commits.
Terms on this card
- git
- A program that records the history of a project folder as a series of saved snapshots you can look at or return to.
- repository
- A project folder that git manages, together with its saved history, which git keeps in the hidden `.git` folder.
- `.git`
- Hidden folder inside the project root where git stores all commits and settings. Deleting it deletes the history.
- `git init`
- Command that turns the current folder into a repository by creating `.git`. It saves no snapshot by itself.
- commit
- A saved, unchangeable snapshot of all tracked files in a repository, with a message, author, time and unique id.
Lesson goal: Explain a repository, the staging area and a commit as a saved snapshot of the whole project with a message. Explain why a recent commit works as an undo button for anything an agent does afterwards. ·
the whole lesson