You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.234,
ImprovementsSection of the release
What
Before running git, Claude Code strips inherited git variables from the environment so your shell's settings cannot change what git does. The matching is now case-insensitive, covering the numbered GIT_CONFIG_KEY_n and GIT_CONFIG_VALUE_n pairs and the fixed list including GIT_DIR, GIT_WORK_TREE and GIT_ALTERNATE_OBJECT_DIRECTORIES.
Details
Any inherited variable whose name collides case-insensitively with one Claude Code sets itself is also unset, so a differently-spelled duplicate cannot survive.
Evidence
GIT_ALTERNATE_OBJECT_DIRECTORIES
Strings lifted out of the shipped bundle, so the claim above can be checked against them.