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

Creating a repo with a chosen initial branch name

Repos Claude Code creates now use an explicit starting branch name rather than your git default.

Under the hood New Features
JSON All of v2.1.248
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
GitArea: what it touches
New FeaturesKind: in v2.1.248,
New FeaturesSection of the release
What

A 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.

Details
  • Runs git init --quiet --initial-branch=<name> with init.templateDir= forced empty, so user-configured git templates cannot inject files into the new repo.
  • Takes an abort signal and a timeout, and reports success purely from a zero exit code.
Evidence

init.templateDir=

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.248 →

Feedback