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

Cloud git setup keeps the plain upstream URL as origin and no longer passes GIT_CONFIG

Repository setup now adds origin with the plain upstream URL instead of the credentialed one, and git subprocesses no longer inherit GIT_CONFIG

Group of 3 You'll notice Improvements
JSON All of v2.1.296
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Cloud SessionsArea: what it touches
ImprovementsKind: in v2.1.296,
ImprovementsSection of the release

Unclear It is not confirmed that git remotes now actually behave the way the new warning says.

What

These changes affect how Claude Code sets up git, the version-control tool, in a repository it prepares for a session.

  • Setup now adds the origin remote using originURL instead of authURL, so the URL that contains credentials is no longer written into the repository's git config. A new originURL field sits next to authURL.
  • For a governed git setup with a direct-upstreams list, the warning now says every source keeps its upstream URL as origin and no in-session fetches are routed through the git mount. Before, it said every source was reset to its upstream URL after preparation.
  • Git commands that Claude Code runs no longer inherit GIT_CONFIG from your environment. Any variable matching GIT_CONFIG, in any letter case, is removed. This joins the existing GIT_CONFIG_GLOBAL=/dev/null and the removal of CLAUDE_CODE_SESSION_ACCESS_TOKEN.
  • Separately, a new check looks at whether ANTHROPIC_CUSTOM_HEADERS holds a non-empty header and whether it matches a value from another source. What that check controls was not shown.

Why

The credentialed URL is no longer stored in the repository's git config, and an inherited GIT_CONFIG can no longer change how Claude Code's git commands behave. Admins of governed git setups should expect sources to keep their upstream URL as origin rather than being reset after preparation.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not confirmed that git remotes now actually behave the way the new warning says.

See this entry in the whole of v2.1.296 →

Feedback