Git Token Injection for Private Repository Cloning#
What's wrong with this entry?
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- Automatically detects authentication failures and retries with token injection
- Supports
GITHUB_TOKEN/GH_TOKENfor github.com - Supports
GITLAB_TOKEN/GL_TOKENfor gitlab.com and GitLab self-hosted instances - Supports
BITBUCKET_TOKENfor bitbucket.org - Tokens in error messages are automatically redacted for security
- Preserves
SSH_AUTH_SOCKfor SSH key agent forwarding
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.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.