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