Did you git reset --hard and lose your work? Don’t panic. Git almost never deletes anything immediately. Reflog tracks every move of the HEAD.
git reflog # Find the hash before the mistake git reset --hard [HASH]
This is the ‘Undo’ button for your entire Git history. It’s the difference between a productive day and losing a week of work.
