Commands are context-sensitive
Read the explanation and inspect git status before changing history or publishing work. This builder intentionally excludes destructive shortcuts such as git reset --hard, git clean -fd, and force pushing.
Safer recovery first
Before a risky history operation, create a temporary branch with git branch backup/before-recovery. For shared history, prefer git revert over rewriting commits. See Git reset vs. revert.