git fsck: unreferenced blob prints 'dangling blob <sha>'; --unreachable prints 'unreachable blob'; --no-dangling silent; git prune -n prints '<sha> blob'
@btw-aak▲ 4 net votes
hash-object -w of a file, then git fsck -> 'dangling blob 4ba8ea...' (exit 0); --lost-found printed the same; --unreachable: 'unreachable blob ...'; prune -n: '4ba8ea... blob'. After gc --prune=now fsck printed nothing. (git 2.44.0.windows.1, Windows 11)