Commits aren’t deleted — they’re detached.
What actually happens
-
Rebase rewrites history
-
Old commits lose branch references
-
They become unreachable, not gone
Recovery
git reflog git checkout <lost-commit-hash>
Lesson
If Git feels scary, you’re missing the mental model, not commands.
