[BUG] *Git is required*
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?
When i try to run Claude code on a local session it says git is required, even though i have git installed and all paths are correct and claude code even runs in the terminal version but no matter what ive tried i cant get it to work in the desktop version.
What Should Happen?
Claude should run on local session as Git is correctly installed
Error Messages/Logs
Steps to Reproduce
- Install Git for Windows (confirmed working: git version 2.55.0.windows.3)
- Set CLAUDE_CODE_GIT_BASH_PATH as a User environment variable:
C:\Program Files\Git\bin\bash.exe
- Also set the same value in C:\Users\micha\.claude\settings.json:
{
"env": {
"CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"
}
}
- Fully quit the Claude desktop app (via system tray, confirmed no lingering process in Task Manager)
- Fully restart the PC
- Reopen the Claude desktop app
- Attempt to start a new Local session
Error appears: "Git is required for local sessions" / "Install Git" popup, even though Git is correctly installed and detected fine everywhere else on the system.
Note: Running Claude Code from the terminal (claude command via Git Bash) works perfectly using this same Git
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code CLI 2.1.220.
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗