[BUG] Cannot use local mode because Claude can't identify git is already on my path

Resolved 💬 1 comment Opened Jun 30, 2026 by rbotzer Closed Jun 30, 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?

For some reason you've closed https://github.com/anthropics/claude-code/issues/54754 , https://github.com/anthropics/claude-code/issues/34496, https://github.com/anthropics/claude-code/issues/57448 before the problem was fixed.

I'm using Claude 1.15962.2 (ab0f59) 2026-06-30T03:34:27.000Z on macOS 26.5.1 (25F80), and the problem started after I upgraded from macOS 14. I cannot start any new session due to this bug - it insists that I need to install Git to use locally, and yet Git is very much installed:

% xcode-select --install
xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates

% which git
/usr/bin/git

% ls -l $(which git)
-rwxr-xr-x  78 root  wheel  118928 May 21 01:57 /usr/bin/git

What Should Happen?

Claude should be able to identify git using which. It shouldn't ask me to install something that is already installed.

Error Messages/Logs

Git is required to run local sessions. Run xcode-select --install in Terminal to install the Command Line Tools, or download Git directly — or switch to a remote environment.

Steps to Reproduce

  1. I start a new session in Claude.
  2. I immediately get the error message, and it refuses to do anything else.

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

2.1.170 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

You should notice that all 3 duplicates were closed by you as "stale" when this isn't a stale issue and "inactive" when multiple people have reported the same bug, and the only ones inactive are Claude developers. Your GitHub issues bot is failing in the most annoying way possible.

View original on GitHub ↗

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