{"version":"2.1.315","anchor":"git-config-adds-corealternaterefscommand-conditionally","canonical_anchor":"git-config-adds-corealternaterefscommand-conditionally","heading":"Git safety overrides can now also set core.alternateRefsCommand","tier":"internal","area":"Git Integration","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/git-config-adds-corealternaterefscommand-conditionally","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### Git safety overrides can now also set `core.alternateRefsCommand`\n\nClaude Code's git safety overrides now add `core.alternateRefsCommand` in some cases, and the list is assembled differently\n\n**Unclear.** It is not clear whether the entries that are no longer written out are still applied, or when `core.alternateRefsCommand` is added.\n\n**What**\n\nClaude Code applies a list of configuration overrides to the git commands it runs behind the scenes. In some cases that list now also sets `core.alternateRefsCommand`.\n\nThe list is also assembled differently. These entries are no longer written out one by one and now appear to come from shared lists:\n\n- `log.showSignature`\n\n- `format.pretty`\n\n- `gc.auto`\n\n- `maintenance.auto`\n\n- `diff.autoRefreshIndex`\n\n**Why**\n\nThis changes how Claude Code hardens its own git commands, the overrides that stop them from running extra programs or changing your repository as a side effect.\n\n- Area: Git Integration\n- Names: `core.alternateRefsCommand`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}