git: repair unreachable object corruption 0 ▲ ¬ just serendipity 🍀 1 day ago · Tech · hide · 0 comments ♠ Problem statement: git fsck failed in a linked worktree, even though every branch and reflog remained intact. The initial diagnosis was noisy: missing blobs, hundreds of dangling objects, and an invalid commit graph: missing blob 97f9a2ed29f84e47848244c2d2626b2536a33c55 error: Could not read 003fb43a3aa361b52f2ab3f27bdabcb9b5137103 failed to parse commit 003fb43a3aa361b52f2ab3f27bdabcb9b5137103 from object database for commit-graph Worktrees have their own administrative directory but share an object database: % git rev-parse --git-dir .git/worktrees/thiagowfx-prm-revenue-tagging % git rev-parse --git-common-dir .git I checked every missing blob against objects reachable from refs and reflogs. None were reachable. Before removing them, I backed up objects, commit graphs, and index: % common=$(git rev-parse --git-common-dir) % backup="$common/repair-backup-20260729221124" % mkdir -p "$backup" % cp "$(git rev-parse --git-path index)" "$backup/worktree-index" % ditto "$common/objects"… No comments yet. Log in to reply on the Fediverse. Comments will appear here.