{"version":"2.1.290","anchor":"git-env-vars-sanitized-more-broadly","canonical_anchor":"git-env-vars-sanitized-more-broadly","heading":"Claude Code removes more git environment variables before running git","tier":"notice","area":"Git","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290\/e\/git-env-vars-sanitized-more-broadly","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.290","markdown":"### Claude Code removes more git environment variables before running git\n\nBefore running git, Claude Code now clears a wider fixed set of git environment variables, not just GIT_CONFIG and GIT_ATTR_SOURCE\n\n**Unclear.** Which additional variables are removed is not known.\n\n**What**\n\nEnvironment variables are settings passed to programs when they start, and several of them change how git behaves. Before running git, Claude Code used to remove only `GIT_CONFIG` and `GIT_ATTR_SOURCE`. It now also removes a further fixed set of git variables and sets those to its own fixed values.\n\n**Why**\n\nThis stops more git settings in your environment from changing what git does when Claude Code runs it.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}