Search and resolve common Git scenarios. Get instant step-by-step CLI commands for undoing commits, recovering lost branches with reflog, squashing PRs, and discarding uncommitted edits safely.
Runs entirely in your browser
Git is powerful but unforgiving, and the moments you most need it — an accidental commit, work on the wrong branch, lost changes — are exactly when it is hardest to remember the right command. This explorer is a searchable, scenario-based cheat sheet: describe the situation and it gives you the step-by-step commands to fix it safely, from undoing a commit to recovering a lost branch with the reflog.
Rather than a flat list of commands, it is organised around the problems people actually hit, so you find the fix by what went wrong rather than needing to know the command’s name already. It also flags the safer approach where a destructive command could lose work, which matters when you are stressed and about to run something irreversible.
It runs in your browser as a reference — it does not touch your repository. Use it to get out of a Git emergency, learn a recovery technique, or double-check a command before you run it.
TechToolsHQ is an independent, reader-supported tech platform. If this free tool saved you time, solved a problem, or helped your workflow, consider supporting our work. Your support helps us keep our utilities 100% free, private, and ad-free for everyone.