{"version":"2.1.302","anchor":"branch-detection-now-requires-the-symbolic-ref-to-resolve","canonical_anchor":"branch-detection-now-requires-the-symbolic-ref-to-resolve","heading":"New repositories with no commits no longer report a branch name","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.302\/e\/branch-detection-now-requires-the-symbolic-ref-to-resolve","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.302","markdown":"### New repositories with no commits no longer report a branch name\n\nClaude Code now reports a git branch only when that branch actually exists, so a fresh repository with no commits shows none\n\n**What**\n\nWhen 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.\n\n**Why**\n\nThe 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.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}