Lost commits after a bad reset or rebase? They're usually still there:
Reflog records every place HEAD has pointed, usually for weeks. Find the SHA of the lost commit, then point a new branch at it.
git reflog git switch -c recovered <sha>
commit bb36186