undo.sh

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.

$_ Features

Git Commit Rollback

Revert any number of commits with a single command. Safe, audited, reversible.

Config Snapshots

Automatically snapshot configuration files before changes. Restore instantly.

Infrastructure Undo

Roll back Terraform, Kubernetes, and Docker changes with blast-radius awareness.

Dry Run Mode

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.

$_ Comparison

Feature undo.sh git revert manual
Multi-commit rollbackYESNONO
Config snapshotsYESNONO
Dry run previewYESNONO
Infra rollbackYESNOPARTIAL
Audit logYESNONO

$_ Try It

Interactive undo simulator — select a scenario and see the rollback steps displayed.

$ undo.sh --last 2 commits

$_ Install

$ npm install -g undo.sh

$_ Community

Saved our production deployment at 2am. One command and we were back online.

— @devops_sarah

The dry-run mode alone is worth the install. I preview everything now.

— @backend_mike

Rolled back a bad Terraform apply in seconds. No more manual state surgery.

— @infra_jen

We integrated it into our CI pipeline. Every failed deploy auto-undoes itself.

— @sre_carlos

12.4k GitHub Stars
890 Contributors
2.1M Downloads