{"name":"CLAUDE_CODE_GIT_CHECK_ONLY_IN_REPOSITORY","slug":"claude-code-git-check-only-in-repository","family":"env","title":"Environment variables","noun":"environment variable","description":"Setting `CLAUDE_CODE_GIT_CHECK_ONLY_IN_REPOSITORY` lets Claude Code skip its built-in git check when you are not inside a git repository","description_source":"entry","described_by":{"version":"2.1.321","anchor":"stop-hook-git-check-can-be-limited-to-repositories-by-an-env"},"presence":{"first_seen":"2.1.321","removed_in":null,"in_current_build":true,"newest_mined":"2.1.322","builds":2,"mined_builds":161,"first_cited":{"version":"2.1.321","released_at":"2026-11-09 19:02:47","spans":1}},"aliases":[],"entries":[{"version":"2.1.321","anchor":"stop-hook-git-check-can-be-limited-to-repositories-by-an-env","heading":"Environment variable to limit the built-in git check to git repositories","line":"Setting `CLAUDE_CODE_GIT_CHECK_ONLY_IN_REPOSITORY` lets Claude Code skip its built-in git check when you are not inside a git repository","released_at":"2026-11-09 19:02:47","reason":"found in this entry's text, named in this entry"}],"entries_total":1,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_GIT_BASH_PATH","slug":"claude-code-git-bash-path","description":"Windows only: path to the Git Bash executable (`bash.exe`). Use when Git Bash is installed but not in your PATH. If the path doesn't exist or the file isn't named `bash.exe`, `sh.exe`, `bash`, or `sh`, Claude Code ignores the variable and auto-detects Git Bash as if it were unset, logging a warning visible with `--debug`. Before v2.1.219, Claude Code exited at startup when the path didn't exist, and used any existing file as the shell without checking that it was bash or sh. See [Windows setup](\/docs\/en\/setup#set-up-on-windows)"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-git-check-only-in-repository","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}