Most Git tutorials show you add, commit, push. But the commands that actually save you are the ones nobody teaches. Here are 5 I use weekly.

1. git reflog — Your Undo History

Ever deleted a branch or lost commits after a bad rebase? git reflog shows EVERYTHING you've done in Git for the last 90 days.

git reflog

# Find the hash of your lost commit, then: