Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.305 ·

Worktrees based on origin's default branch use the exact remote branch

When creating a worktree from origin's default branch, Claude Code now looks up the exact remote branch and names the failing git command in errors

You'll notice Bug Fixes
JSON All of v2.1.305
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Bug FixesKind: in v2.1.305,
Bug FixesSection of the release
What

A worktree is a second working copy of your git repository in its own folder. When Claude Code creates one based on the default branch of origin (your main remote repository), it now looks up that branch with git show-ref, which matches only the exact remote branch name, instead of a looser lookup.

Other changes in the same step:

  • The worktree is created from the commit that branch points to.
  • If a git command fails, the error now names the actual command that failed.
  • If fetching the latest copy of the branch fails, Claude Code still reads the copy of the remote branch it already has, instead of requiring the fetch to succeed first.
Why

Worktrees started from origin's default branch are more reliably tied to the right remote branch, and failures are easier to understand.

See this entry in the whole of v2.1.305 →

Feedback