[BUG] Error: Claude Code process exited with code 1 : Claude Code unable to find CLAUDE_CODE_GIT_BASH_PATH even when file exists and settings.json is read correctly - Windows
Resolved 💬 3 comments Opened Apr 17, 2026 by KarimDrafat Closed Apr 19, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Environment
- OS: Windows 11 64-bit
- Claude Code version: 2.1.112
- Git Bash location: C:\Git\usr\bin\bash.exe (also tried C:\bash\bash.exe and C:\Git\bin\bash.exe)
What's wrong
Claude Code rejects every bash path I set, even when:
- The file exists and is executable
- settings.json is being read (confirmed by "settingsEnv keys: CLAUDE_CODE_GIT_BASH_PATH" in logs)
- bash.exe works fine when run directly
What Should Happen?
Claude Code should find and use bash.exe at the configured path.
Error Messages/Logs
CA certs: Config fallback - globalEnv keys: , settingsEnv keys: CLAUDE_CODE_GIT_BASH_PATH
Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path "C:\bash\bash.exe"
Steps to Reproduce
- Install Git for Windows to C:\Git
- Set CLAUDE_CODE_GIT_BASH_PATH in ~/.claude/settings.json
- Confirm bash.exe exists and works at that path
- Launch Claude Code — always crashes with exit code 1
Expected behavior
Claude Code should find and use bash.exe at the configured path.
Additional context
- Machine-level env var set, user-level env var set, settings.json set — all ignored
- globalEnv keys always shows empty despite env vars being set
- The file C:\bash\bash.exe exists (confirmed with Test-Path = True)
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.112
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Cursor
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗