Hosting Operations
Read-onlyPreview the Patch a Rollback Would Apply
You know the last good release tag, but you want to inspect what a rollback would remove before changing anything.
Command
git diff --stat HEAD..release-2026-06-25-1000
Before you run this
System impact: Read-only. Low when scoped to the shown target.
When not to use it: Do not treat a small diff as automatically safe; migrations, config, and external state still need review.
Expected output
A diffstat showing the config, migration, public page, and release metadata changes that rollback would remove.
System impact
Read-only. Nothing changes. Git prints the patch summary from the current commit back to the last good release.
Recovery / rollback: no state is changed.
When to use it
Use before reset, revert, or deploy rollback when you need a quick preview of the files and line counts involved.
When not to use it
Do not treat a small diff as automatically safe; migrations, config, and external state still need review.
next steps
Related commands
Show Files Changed Since Last Good Release
Compare the suspect release against the last known-good tag.
git diff --name-status release-2026-06-25-1000..HEAD
Restore One File From Last Good Release
Recover a config file without rolling back the whole branch.
git restore --source=release-2026-06-25-1000 -- app/config.yml
Revert the Suspect Release Commit
Undo a bad release with a new commit instead of rewriting history.
git restore -- app/config.yml && git revert --no-edit release-2026-06-25-1030
Map Recent Release Commits
A rollback is easier when the last few release tags are visible.
git log --oneline --decorate --graph --all -8
Find the Processes Burning CPU
A server feels slow, but you need proof before restarting anything.
ps -eo pid,ppid,stat,pcpu,pmem,comm,args --sort=-pcpu | head -n 10
Study mapping
Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.
Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.