⌨️CLAUDE_CODE_GIT_BASH_PATH
Also known as CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
On Windows, it points Claude Code at your Git Bash.
Think of it like
It is like you give a taxi the full address. The map could not find it.
Example
Lucy installed Git in a custom folder, so Claude Code could not find bash. She sets this to the full path.
Why it matters
On Windows, Claude Code needs a bash to run its commands. A custom install can hide it.
Definition
Example code
powershell
$env:CLAUDE_CODE_GIT_BASH_PATH = "C:\Program Files\Git\bin\bash.exe"
claudeCommon mistake
Key takeaways
- 1Windows only. Git Bash.
- 2When not on PATH. Custom installs.
- 3Wrong path. Ignored.