Unclear Which of Claude Code's internal git commands besides the reset receive these settings is not fully known.
Git can take config settings from environment variables: GIT_CONFIG_COUNT, GIT_CONFIG_KEY_n and GIT_CONFIG_VALUE_n. When you set TLS settings this way, Claude Code now passes them on to the git commands it runs itself, such as a reset --hard. TLS is the encryption used for secure connections. Only http settings like these are passed on:
sslcainfoandsslcapath, the certificate authority bundlesslverifysslversion,sslcipherlistandsslbackendschannelcheckrevokeandschannelusesslcainfopinnedpubkey, certificate pinningproxysslcainfo
Before, those internal git commands ran without these settings.
If you are behind a corporate proxy with a custom certificate bundle set through environment variables, Claude Code's own git operations could fail certificate checks. They now use the same settings as your own git commands.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
| `GIT_CONFIG_COUNT`, `GIT_CONFIG_KEY_n`, `GIT_CONFIG_VALUE_n` | Git settings the runner fixes for the git your hook runs. [Git configuration inside lifecycle hooks](#git-configuration-inside-lifecycle-hooks) describes them. Requires Claud…self-hosted-environments-configuration see the edit
| `GIT_CONFIG_COUNT`, `GIT_CONFIG_KEY_n`, `GIT_CONFIG_VALUE_n` | Git settings the runner fixes for the git your hook runs. [Git configuration inside lifecycle hooks](#git-configuration-inside-lifecycle-hooks) describes them. Requires Claud…self-hosted-environments-configuration see the edit
| `GIT_CONFIG_COUNT`, `GIT_CONFIG_KEY_n`, `GIT_CONFIG_VALUE_n` | Git settings the runner fixes for the git your hook runs. [Git configuration inside lifecycle hooks](#git-configuration-inside-lifecycle-hooks) describes them. Requires Claud…self-hosted-environments-configuration see the edit
Which of Claude Code's internal git commands besides the reset receive these settings is not fully known.
Anthropic's documentation has since written up GIT_CONFIG_COUNT, on Customize sessions in self-hosted environments.
Fixed worktree checkouts failing certificate verification (for example on Git LFS downloads) when the CA certificate is passed to git as…