Unreachable objects are those that are not accessible by any refs.
As an example, say we have made two commits, and reset them to different heads by calling git reset <commit_id>
command.
Though the git log
command will not show the commit info, git still stores it internally as a dangling object.
git fsck --lost-found