{"version":"2.1.315","anchor":"git-infoexclude-gets-rules-for-claudes-runtime-files","canonical_anchor":"git-infoexclude-gets-rules-for-claudes-runtime-files","heading":"Claude Code tells git to ignore the files it writes under .claude\/","tier":"notice","area":"Git Integration","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/git-infoexclude-gets-rules-for-claudes-runtime-files","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### Claude Code tells git to ignore the files it writes under .claude\/\n\nClaude Code now adds git ignore rules for its own files under .claude\/ so they stop showing as untracked\n\n**What**\n\nClaude Code now adds rules to `.git\/info\/exclude` for the files it writes in the `.claude\/` folder. `.git\/info\/exclude` is a local file that tells git which files to ignore, and it is not shared with anyone else. If the repository's `.git` folder is laid out in an unusual way, Claude Code does not add the rules. It shows a warning that those files may show as untracked in `git status`.\n\n**Why**\n\nClaude Code's own files under `.claude\/` no longer clutter `git status` as untracked files you might commit by mistake.\n\n- Area: Git Integration\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}