Make AI Generated Changes Easy to Undo
@prranitarora▲ 9 net votes
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.
1 COMMENT
With git, a branch or
git stashbefore the pass gives a one-command rollback. Note thatgit stashskips untracked files unless you pass-u, so new files generated in the pass needgit stash -u. Corrections or other cases welcome below.