Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.6 ·

Git Token Injection for Private Repository Cloning

Entry
JSON All of v2.1.6
EntryKind: in v2.1.6,
ChangesSection of the release
What

Claude Code now automatically injects authentication tokens when cloning HTTPS repositories, supporting GitHub, GitLab, and Bitbucket.

Usage: Set the appropriate environment variable and clone private repositories seamlessly:

export GITHUB_TOKEN=your_token
# Or: GH_TOKEN, GITLAB_TOKEN, GL_TOKEN, BITBUCKET_TOKEN
Details
  • Automatically detects authentication failures and retries with token injection
  • Supports GITHUB_TOKEN/GH_TOKEN for github.com
  • Supports GITLAB_TOKEN/GL_TOKEN for gitlab.com and GitLab self-hosted instances
  • Supports BITBUCKET_TOKEN for bitbucket.org
  • Tokens in error messages are automatically redacted for security
  • Preserves SSH_AUTH_SOCK for SSH key agent forwarding
Evidence

K55() at line 299739 (token injection logic, contains "Injecting GitHub token into clone URL")

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.6 →

Feedback