git fsck --lost-found
Sweeps the basement for objects no reference claims.
git fsck checks the object vault's integrity and lists the orphans: commits and blobs that exist in the database but that no reference can reach. With --lost-found, the finds are also copied into .git/lost-found/, ready for inspection.
It is the rescue after the rescue: when even the reflog has expired — or a stash drop took the only copy with it — the objects are usually still there, dangling in the dark. git show on each hash tells you what each bone was in life.
$ git fsck --lost-found
Checking object directories: 100% (256/256), done.
dangling commit 8f3a9c2e1b7d4f6a0c5e9b2d8a1f4c7e3b6d9a05
$ git show -s --oneline 8f3a9c2
8f3a9c2 telemetria: rascunho perdido do painel