Commits on a Detached HEAD
You made two commits on a detached HEAD, then checked out main. How do you find those commits again?
main
Choose one answer
Run git checkout - twice, which always restores detached commits.
git checkout -
They're gone: commits on a detached HEAD are never saved.
Find them in git reflog, then create a branch pointing at the last one.
git reflog
Use git stash pop, because Git stashed them when you switched.
git stash pop