git reflog
Using the git reflog command should reveal Git's internal diary of all of the commits that HEAD has pointed to in your local repository—even the ones you thought were lost forever (assuming they weren’t old enough to have expired).
by Tinatin Kvinikadze
12 months ago
Git
git reflog
0
Pro tip: use ```triple backticks around text``` to write in code fences