A commit is a save point
A file before and after an agent edits it, and what a commit lets you bring back. Lesson 7 of the course Vibecoding from zero with t27.
From a save to a restore
- Work until it runs
- Commit: keep a copy
- Edit, maybe break it
- Restore the copy
| Moment | The file says | Save points |
|---|---|---|
| Committed | 10 | 3 |
| Edited by an agent | 99 | 3 |
| Restored from the commit | 10 | 3 |
Going back returns 10, not 99: the commit kept the file as it was.