[BUG] Git-Bash works fine from terminal, not from Claude Code
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?
Title: Bash commands completely fail on Windows with Git Bash (MINGW64)
Environment:
- Platform: Windows (win32)
- OS: MINGW64_NT-10.0-26200 3.6.4-b9f03e96.x86_64
- Shell: Git Bash
- Working directory: I:\wordpress-code
- Git Bash status: Works normally outside of Claude Code
Issue:
All bash commands fail with generic "Error" message and no output.
Even basic commands like pwd, ls, and cd return no output.
Commands tested:
- pwd
- ls -la
- cd subtopikal && pwd
All return: Error (with no additional information)
Expected: Commands should execute and return output
Actual: All commands fail silently with generic error message
What Should Happen?
Execution of bash commands within VSCode
Error Messages/Logs
All return: Error (with no additional information)
Steps to Reproduce
Load VSCode with Claude Code.
Have Claude try toi execute a bash command using git-bash
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.0.14
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
Output from Claude for reporting:
Since Git Bash works fine independently but fails completely in Claude Code, this is a Claude Code integration bug.
The bash tool isn't properly communicating with Git Bash on your Windows system.
This needs to be reported to the Claude Code team:
Please report this issue at: https://github.com/anthropics/claude-code/issues
Information to include in your bug report:
Title: Bash commands completely fail on Windows with Git Bash (MINGW64)
Environment:
- Platform: Windows (win32)
- OS: MINGW64_NT-10.0-26200 3.6.4-b9f03e96.x86_64
- Shell: Git Bash
- Working directory: I:\wordpress-code
- Git Bash status: Works normally outside of Claude Code
Issue:
All bash commands fail with generic "Error" message and no output.
Even basic commands like pwd, ls, and cd return no output.
Commands tested:
- pwd
- ls -la
- cd subtopikal && pwd
All return: Error (with no additional information)
Expected: Commands should execute and return output
Actual: All commands fail silently with generic error message
Unfortunately, I cannot fix this issue as it's within Claude Code's bash integration layer, not something I can
diagnose or repair from within the tool. The Claude Code team will need to investigate why bash execution is failing
on your Windows/Git Bash setup.
In the meantime, you can still use file operations (Read, Write, Edit, Glob, Grep) which don't rely on bash. Would you
like to work on your WordPress site or Chrome extension using those tools instead?
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗