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.302 ·

New repositories with no commits no longer report a branch name

Claude Code now reports a git branch only when that branch actually exists, so a fresh repository with no commits shows none

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

When Claude Code works out which git branch you are on, it now also checks that the branch really exists. In a brand new repository with no commits yet, git names a branch that does not exist until the first commit. Claude Code now treats that as no branch instead of reporting the name.

Why

The parts of Claude Code that show or use your git details may show no branch in a fresh repository until you make your first commit.

See this entry in the whole of v2.1.302 →

Feedback