{"version":"2.1.248","anchor":"creating-a-repo-with-a-chosen-initial-branch-name","canonical_anchor":"creating-a-repo-with-a-chosen-initial-branch-name","heading":"Creating a repo with a chosen initial branch name","tier":"internal","area":"Git","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/creating-a-repo-with-a-chosen-initial-branch-name","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Creating a repo with a chosen initial branch name\n\nRepos Claude Code creates now use an explicit starting branch name rather than your git default.\n\n**What**\n\nA new internal helper initialises a git repository with an explicit starting branch name, so repos Claude Code creates for you no longer depend on your machine's git default or on local repo templates.\n\n**Details**\n\n- Runs `git init --quiet --initial-branch=<name>` with `init.templateDir=` forced empty, so user-configured git templates cannot inject files into the new repo.\n- Takes an abort signal and a timeout, and reports success purely from a zero exit code.\n\n**Evidence**\n\n`init.templateDir=`\n\n- Area: Git\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}