{"version":"2.1.330","anchor":"default-branch-detection-no-longer-falls-back-to-main","canonical_anchor":"default-branch-detection-no-longer-falls-back-to-main","heading":"Claude Code no longer assumes main when it cannot find a default branch","tier":"notice","area":"Git","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/default-branch-detection-no-longer-falls-back-to-main","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Claude Code no longer assumes `main` when it cannot find a default branch\n\nWhen a repository's default branch cannot be found, Claude Code now reports no default branch instead of assuming `main`\n\n**What**\n\nIn a git repository, the default branch is the main line of work that other branches are compared against. When Claude Code cannot work out which branch that is, it now reports that there is no default branch. Before, it fell back to assuming the branch was called `main`.\n\n**Why**\n\nRepositories with no `refs\/remotes\/origin\/HEAD` and no commonly named branch no longer quietly get `main` as their base, which could point at a branch that does not exist.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}