Claude Code fails to detect git despite correct installation
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
- Launch Claude Code v2.1.19 on Linux
- Git is installed at
/usr/bin/gitand accessible via PATH - Attempt to use shortcuts feature
- 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]
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗