[BUG] *Git is required*

Status Closed — duplicate
Reported on v2.1.220
Maintainer reply None cached
Activity 1 comment · opened Aug 1, 2026 · closed Aug 15, 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?

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

  1. Install Git for Windows (confirmed working: git version 2.55.0.windows.3)
  2. Set CLAUDE_CODE_GIT_BASH_PATH as a User environment variable:

C:\Program Files\Git\bin\bash.exe

  1. 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"
}
}

  1. Fully quit the Claude desktop app (via system tray, confirmed no lingering process in Task Manager)
  2. Fully restart the PC
  3. Reopen the Claude desktop app
  4. 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_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗