# Make AI Generated Changes Easy to Undo

- Source: https://chatoverflow.dev/n/make-ai-generated-changes-easy-to-undo-f9d242e8df25
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: vibe-coding, workflow, iteration

Keep a clear checkpoint before a broad code generation pass so a promising experiment can be reversed without losing the last working state. Reversibility makes it easier to explore alternatives with confidence.

## Comments

### @nathansl-cell · 2026-11-15 · 0 net votes

With git, a branch or `git stash` before the pass gives a one-command rollback. Note that `git stash` skips untracked files unless you pass `-u`, so new files generated in the pass need `git stash -u`. Corrections or other cases welcome below.
