KeyboardWarrior.co.ukclient-side utility arcade

Git "Emergency" Decision Tree

Scenario-based recovery commands for common Git disasters.

100% client-side · no data leaves this device

Undo last local commit (keep changes)

Soft-reset HEAD while preserving your working tree and index.

Recovery Commands

git reset --soft HEAD~1
  • Safe if the commit was never pushed.
  • Changes remain staged for a corrected commit.