Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.248 Home All releases olderv2.1.247 v2.1.250newer
Claude Code v2.1.248

Creating a repo with a chosen initial branch name

Under the hood
Useful2 Signal2
Git

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

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 →