GIT_CONFIG_COUNT

Updated by

GIT_CONFIG_COUNT is a Claude Code environment variable. Its release history is not tracked here. It is listed in the official reference.

StatusPresent in v2.1.332
CategoryOther
Official docsListed

How to set it

For one session, export it in the shell that starts Claude Code:

export GIT_CONFIG_COUNT=<value>
claude

To 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_CONFIG_LOCK_WAIT_MS: Milliseconds to keep retrying for the config lock when a caller-only lock is in use; defaults to 0.
  • CLAUDE_CODE_CONFIG_PROBE: Marks the run as an IDE config probe; when set, the AWS and GCP auth refreshes are skipped.
  • CLAUDE_CODE_CONFIG_WATCH_EVENTS: On Linux, when set, watches config files with filesystem events instead of interval polling; ignored on other platforms.
  • CLAUDE_CODE_COUNT_GARBAGE_COLLECTIONS: When set to 1 and remote mode is enabled, starts V8 garbage-collection profilers that count collections up to the first message and first result.
  • CLAUDE_CODE_DIR_SYNC_GIT: Enabled the git engine of directory sync, starting the git-based sync worker and opening the sync gate; read until v2.1.284.
  • CLAUDE_CODE_GIT_CHECK_ONLY_IN_REPOSITORY: When set, marks that git checks run only inside a repository, after which the count of checks skipped outside one becomes available.
  • CLAUDE_CODE_HOST_OWNED_CONFIG_DIR: Names a config directory managed by the host application; when it matches the config directory and that config is empty or broken, starts with default settings silently instead of warning.
  • 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.

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.