Claude Code fails to detect git despite correct installation

Resolved 💬 4 comments Opened Jan 26, 2026 by snadboy Closed Jan 30, 2026

Claude Code fails to detect git despite correct installation

Environment

  • Claude Code Version: v2.1.19
  • OS: Linux 6.14.0-37-generic
  • Git Version: 2.43.0
  • Git Location: /usr/bin/git

Description

Claude Code displays an error message stating "Anthropic marketplace requires git · Install git and restart" even though git is correctly installed and accessible in the system PATH.

Steps to Reproduce

  1. Launch Claude Code v2.1.19 on Linux
  2. Git is installed at /usr/bin/git and accessible via PATH
  3. Attempt to use shortcuts feature
  4. Error message appears: "? for shortcuts Anthropic marketplace requires git · Install git and restart"

Expected Behavior

Claude Code should detect the installed git binary and not show the error message.

Actual Behavior

Despite git being properly installed and functional (verified with which git and git --version), Claude Code claims git is not installed.

Verification

$ which git
/usr/bin/git

$ git --version
git version 2.43.0

$ echo $PATH
/home/snadboy/.local/bin:/home/snadboy/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin

Git works correctly in the terminal and Claude Code's AI assistant can use git commands successfully - only the marketplace/shortcuts feature fails to detect it.

Additional Context

The issue appears to be specific to the marketplace/shortcuts feature's git detection, as other parts of Claude Code can interact with git successfully.

Screenshot

[Attached: Screenshot showing the error message in Claude Code UI]

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗