Omniscio

OmniscioGuidesgit on macOS

Claude Code: git is not installed on this Mac

The message is not about Claude Code's install. It is about the developer tools that provide git, which are not installed on this Mac yet.

Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .

What is the exact message?

git is not installed on this Mac. To install it, run xcode-select --install, then try again.

Anthropic says it can appear inside a longer message rather than on its own.

Why it happened

A step in Claude Code needed git. The git it found is Apple's stand-in at /usr/bin/git, and the developer tools that provide git are not installed.

Claude Code does not start the stand-in, and shows this text instead. So the machine has a path called git and no git behind it, and reinstalling Claude Code does not address the missing git.

Git is optional for Claude Code overall; Anthropic's setup page lists it that way. Where git is installed, claude plugin eval requires 2.31 or later, and uploads of a local repository to a cloud session from macOS, Linux or WSL need git 2.31 or later. One of those steps is the kind that stops with this message.

How do I fix it?

  1. Run the command the message names. In Terminal, run xcode-select --install.
  2. Finish that installation. The developer tools it installs provide the real git.
  3. Retry the step in Claude Code. Anthropic's instruction is to try again once the install completes; the step that stopped is the one to repeat.

How do I know it is fixed?

  • Run git --version in Terminal. It prints the version of the git it finds, such as git version 2.39.5.
  • The step in Claude Code that produced the message now runs instead of stopping.
  • If the step was the one that needs git 2.31 or later, the printed version is 2.31 or above.

What does not help

  • Reinstalling Claude Code. The message comes from a step that needed git on the machine; the Claude Code install itself is not the part that is missing.
  • Installing some other git instead. The message names xcode-select --install, which is the step Anthropic documents and puts git where the stand-in is. A git from somewhere else only helps if Claude Code's own search finds it, so it is the developer tools rather than a second git that clears the message.
  • Ignoring it and retrying later. The stand-in stays a stand-in until those tools are installed, so the same step fails the same way.

Where these answers come from

Common questions

Why does Claude Code say git is not installed on this Mac?

A step in Claude Code needed git, and the git it found is Apple's stand-in at /usr/bin/git. The developer tools that provide git are not installed, so Claude Code does not start the stand-in and shows this text instead.

How do I install git on macOS for Claude Code?

In Terminal, run xcode-select --install, finish the installation it starts, then retry what you were doing in Claude Code. That is the command the message itself names.

Does Claude Code need git for everything?

No. Anthropic's setup page lists git as optional. If git is installed, claude plugin eval requires 2.31 or later, and uploads of a local repository to a cloud session from macOS, Linux or WSL need git 2.31 or later.

How do I check that git now works?

Run git --version in Terminal. It prints the version of the git it finds, such as git version 2.39.5.