04Track 4 of 11

Undo & Recovery

Fix mistakes safely.

12 lessons2740 XP
Start the track
  1. 01
    Revert vs Reset
    The critical difference
    +250 XP
  2. 02
    Reset Variations
    Soft, mixed, hard — three depths of undo
    +220 XP
  3. 03
    Clean & Restore
    Delete junk files and undo working-copy edits
    +180 XP
  4. 04
    Reflog — Undo Anything
    Git's safety net
    +350 XP
  5. 05
    Amending Commits Safely
    Fix the last commit without history pollution
    +200 XP
  6. 06
    Recovering Lost Commits
    Reflog → reset, full rescue
    +280 XP
  7. 07
    Fixing the Last Commit Message
    A typo without amend trauma
    +150 XP
  8. 08
    Resetting a Single File
    Undo changes to one file without affecting others
    +180 XP
  9. 09
    Detached HEAD Recovery
    Why your commits are about to vanish
    +280 XP
  10. 10
    Recovering Deleted Branches
    Bring back `git branch -D` mistakes
    +250 XP
  11. 11
    Stash as Temporary Undo
    Pause your changes without committing
    +200 XP
  12. 12
    Hard Reset to Origin
    The nuclear sync option
    +200 XP
← Previous trackInspection & DebuggingNext track →Remote & GitHub