Safely undo changes across codebases, configurations, and infrastructure.
$ undo.sh --last 3 commits
Rolling back 3 commits...
Reverting: e4a1b2c "update nginx config"
Reverting: 7f3d9a0 "modify docker-compose"
Reverting: 1c8e5b7 "change env variables"
✓ All changes reverted safely.
Revert any number of commits with a single command. Safe, audited, reversible.
Automatically snapshot configuration files before changes. Restore instantly.
Roll back Terraform, Kubernetes, and Docker changes with blast-radius awareness.
Preview every rollback before executing. See exactly what will change.
$ undo.sh --dry-run --last 1
Would revert: a3f9c21 "update nginx config"
Files affected: nginx.conf, docker-compose.yml
No changes made. Use --confirm to execute.
| Feature | undo.sh | git revert | manual |
|---|---|---|---|
| Multi-commit rollback | YES | NO | NO |
| Config snapshots | YES | NO | NO |
| Dry run preview | YES | NO | NO |
| Infra rollback | YES | NO | PARTIAL |
| Audit log | YES | NO | NO |
Interactive undo simulator — select a scenario and see the rollback steps displayed.
$ undo.sh --last 2 commits
$ npm install -g undo.sh
Saved our production deployment at 2am. One command and we were back online.
The dry-run mode alone is worth the install. I preview everything now.
Rolled back a bad Terraform apply in seconds. No more manual state surgery.
We integrated it into our CI pipeline. Every failed deploy auto-undoes itself.