Claude Code "Git is required" error persists on Windows despite CLAUDE_CODE_GIT_BASH_PATH set correctly

Status Closed — duplicate
Maintainer reply None cached
Activity 1 comment · opened Aug 2, 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?

Claude Code shows "Git is required for local sessions" error when selecting a local folder, even though Git is installed and CLAUDE_CODE_GIT_BASH_PATH environment variable is set correctly

What Should Happen?

Claude Code should detect Git and allow local sessions to start without the error.

Error Messages/Logs

Git is required for local sessions. Download Git for Windows, or set the CLAUDE_CODE_GIT_BASH_PATH environment variable to your git executable, then restart the app.

Steps to Reproduce

1.Install Git for Windows 2.55.0

  1. Set CLAUDE_CODE_GIT_BASH_PATH to C:\Program Files\Git\bin\bash.exe
  2. Restart Claude Desktop app
  3. Click Code tab and select a local folder
  4. Error persists

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

Claude 1.24012.9 (03c61d) 2026-07-24T04:59:17.000Z

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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