TLDR Web Dev · QUICK LINKS
HOW TO USE GIT REFLOG TO FIND LOST COMMITS
Summary from the TLDR Web Dev newsletter
‘Git reflog' can be used to recover lost commits in Git since Git reflog is an audit log of everything that you do (to the HEAD reference).