You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
ImprovementsKind: in v2.1.285,
ImprovementsSection of the release
What
A git worktree is an extra working folder linked to the same repository. When Claude Code runs git on a machine you provide, its cleanup of leftover worktrees has changed:
stale worktrees are removed with worktree remove --force, skipping ones that cannot be removed because they are Windows reparse points (links to other locations)
worktrees are unregistered with a limited, contained step instead of running worktree prune
before deleting, the scan checks the worktree's gitdir file, confirms the repository root is the expected one, and compares file identity numbers
Why
These checks lower the risk of deleting the wrong folders, especially on shared or network drives.
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear which features run this cleanup.