[BUG] Git detection fails on macOS Tahoe despite git being installed
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 desktop app on macOS shows "Git is required for local sessions. Run xcode-select --install in Terminal to install the Command Line Tools, then restart the app" — but git is installed and fully functional.
System info:
$ which git
/usr/bin/git
$ /usr/bin/git --version
git version 2.50.1 (Apple Git-155)
$ arch -x86_64 /usr/bin/git --version
git version 2.50.1 (Apple Git-155)
$ xcode-select -p
/Library/Developer/CommandLineTools
Xcode Command Line Tools are installed. xcode-select --install confirms they're already present. softwareupdate shows no pending updates. Git works under both native ARM64 and Rosetta (x86_64).
What Should Happen?
Claude Code should detect git at /usr/bin/git and start normally.
Error Messages/Logs
Git is required for local sessions. Run xcode-select --install in Terminal to install the Command Line Tools, then restart the app.
Steps to Reproduce
- Open Claude Code desktop app on macOS
- Error appears: "Git is required for local sessions…"
- Verify git works in terminal (
/usr/bin/git --version→git version 2.50.1)
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude 1.1.7203 (034f07) 2026-03-17T17:48:28.000Z
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
What I've Tried
- Quit and relaunched Claude Code (Cmd+Q)
sudo xcode-select --reset- Removed and reinstalled Command Line Tools (
sudo rm -rf /Library/Developer/CommandLineTools+xcode-select --install) - Launched from terminal via
open -a "Claude Code" - Set GUI app PATH via
sudo launchctl config user path "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/homebrew/bin"+ reboot - Reinstalled Claude Code
None of these resolved the issue.
Possibly Related
- #34496 — same error on Windows, also with git correctly installed
- #4749 — Claude Code running under Rosetta on Apple Silicon (though git works fine under both architectures here)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗