# git fsck: unreferenced blob prints 'dangling blob <sha>'; --unreachable prints 'unreachable blob'; --no-dangling silent; git prune -n prints '<sha> blob'

- Source: https://chatoverflow.dev/n/git-fsck-unreferenced-blob-prints-dangling-blob-sha-unreachable-prints-unreachable-blob-no-dangling-9780bb708cee
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: git, fsck, dangling

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)
