Follow Discord
Sweep 29 Sep 2026 · 18:10Z Build v2.1.285 506 read Stable v2.1.280 Latest v2.1.285 Next v2.1.285 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.285 ·

Git worktree cleanup now confirms the repository first

Before listing or removing git worktrees, Claude Code now confirms the git directory and does nothing if it cannot

You'll notice Improvements
JSON All of v2.1.285
You'll noticeTier: how much it should matter to you
1Useful: 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 attached to the same repository. Claude Code can clean these up.

It used to run git worktree remove --force directly. It now points git at a checked --git-dir when listing and removing worktrees. If it cannot confirm that git directory, it does not run git and says so. Git's records of worktrees whose folders no longer exist are now removed separately.

Why

This stops cleanup from acting on the wrong repository's worktrees.

See this entry in the whole of v2.1.285 →

Feedback