I think there is a way. The term is “an unreachable” commit. I don’t know the commands though.
I don't think you can do it with reflog.
However, you can use git fsck --lost-found. This command will give you all dangling blobs and commits.
After the command, check the .git/lost-found folder.
git fsck --lost-found
In a "hello world" project with a few commits it can be cool... however on a big project it will give you hundred of files 😕
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.