{"version":"2.1.331","anchor":"git-excludesfile-lookup-made-hermetic","canonical_anchor":"git-excludesfile-lookup-made-hermetic","heading":"Looking up git's global ignore file no longer reads system or included config","tier":"internal","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/git-excludesfile-lookup-made-hermetic","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Looking up git's global ignore file no longer reads system or included config\n\nClaude Code finds your git global ignore file without reading system git config or included config files\n\n**Unclear.** Whether Claude Code still reads your own global git config this way is not known.\n\n**What**\n\nGit can use one ignore file for every repository, set by `core.excludesfile`. It lists files git should leave untracked. Claude Code looks this setting up, and it now runs git in a sealed-off way to do so:\n\n- `GIT_CONFIG_NOSYSTEM=1`, so the system-wide git config is not read\n\n- `--no-includes`, so config files pulled in by an include line are not read\n\n- `--git-dir=\/dev\/null`, so no repository is used\n\nBefore, it ran `git config --global --get core.excludesfile`.\n\n**Why**\n\nIf your `core.excludesfile` is set in the system git config or in a file your config includes, Claude Code may no longer pick it up. Setting it directly in your own global git config avoids this.\n\n- Area: Git\n- Names: `core.excludesfile`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}