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.310 |
|---|---|
| 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_CODE_RESTRICT_PERSONAL_CONFIG: Limits what a session's own Claude Code files may do.CLAUDE_CONFIG_DIR: Custom config directory.CLAUDE_CODE_CONFIG_PROBECLAUDE_CODE_CONFIG_WATCH_EVENTSCLAUDE_CODE_DIR_SYNC_GITCLAUDE_CODE_FOUND_REPOSITORY_GITCLAUDE_CODE_PERSONAL_CONFIG_FIX
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.