GIT_CONFIG_COUNT
Updated by Alex Sorokoletov
GIT_CONFIG_COUNT is a Claude Code environment variable. Its release history is not tracked here. It is listed in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| Category | Other |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export GIT_CONFIG_COUNT=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"GIT_CONFIG_COUNT": "<value>"
}
}Related variables
CLAUDE_CODE_MANAGED_CONFIG_PREFETCH: Turns on a hedged prefetch of the organization's managed settings during startup, so the first managed-settings fetch runs earlier in the launch sequence.CLAUDE_CONFIG_DIR: Custom config directory.CLAUDE_CODE_CONFIG_PROBECLAUDE_CODE_CONFIG_WATCH_EVENTSCLAUDE_CODE_DIR_SYNC_GITCLAUDE_SECURESTORAGE_CONFIG_DIRANTHROPIC_BETAS: Comma-separated beta feature headers.ANTHROPIC_CUSTOM_HEADERS: Custom HTTP headers (newline-separated Key: Value).
Frequently asked questions
Which Claude Code version has GIT_CONFIG_COUNT?
Its release history is not tracked here.
How do I set GIT_CONFIG_COUNT?
Export it before starting Claude Code (export GIT_CONFIG_COUNT=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.