[BUG] Show Error: Claude Code on Windows requires git-bash
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?
Show Error: Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
View output logs · Troubleshooting resources
Windows 11 Enterprise version 25H2
Claude Code v2.1.85
CLAUDE_CODE_GIT_BASH_PATH : set up correct
but VS Code panel still show error on vs code
What Should Happen?
I want to use "VS Code Extension Panel (GUI)".
Error Messages/Logs
Error: Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
View output logs · [Troubleshooting resources](https://code.claude.com/docs/en/vs-code#troubleshooting)
Steps to Reproduce
Summary of all steps tried that did not work:
What is correctly configured ✅
Git Bash installed at C:\Program Files\Git\bin\bash.exe
Environment variable CLAUDE_CODE_GIT_BASH_PATH set correctly
C:\Users\xxx\.local\bin added to PATH
Claude Code CLI v2.1.85 working normally via terminal
Node.js v25.8.1 installed
claude install completed successfully
Steps tried but did not fix the issue ❌
Set CLAUDE_CODE_GIT_BASH_PATH via setx command
Added environment variable via System Properties
Added terminal.integrated.env.windows in VS Code settings.json
Added claudeCode.gitBashPath in VS Code settings.json
Added Git bin folder to System PATH
Restarted VS Code multiple times
Full Windows restart
Uninstalled and reinstalled Claude Code extension
Ran claude install to switch to native installer
Current Status
✅ Claude Code CLI works normally via Terminal
❌ VS Code panel still shows the same git-bash error
📝 Bug reported to Anthropic
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
yesterday
Claude Code Version
v2.1.85
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗