2 pages for core.excludesfile.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code settings
Claude Code CLI · in the page
settings
….local.json` to your global git excludes file. That excludes file is `core.excludesFile` from your global git config when it's set to an absolute or `~`-prefixed path, otherwise `$XDG_CONFIG_HOME/git/…
All settings
Claude Code CLI · in the page
settings-reference
…r global git configuration names through `[include]`, `[includeIf]`, `core.excludesFile`, or `core.attributesFile` Claude Code judges each file separately. When a file lies where a sandboxed command…