Git not-a-git-command The invoked subcommand is not among the commands this Git installation provides.
Reviewed for reference consistency: August 11, 2026
Code is Safe
SECUREGit has paused the operation to protect your code. No data has been lost or corrupted.
What To Know
Where Did It Fail?
Commands That Trigger This
Technical Background
Git builds its command list from compiled-in commands plus executables named git-<something> on the PATH. The message therefore covers two worlds: a compiled command that does not exist, and an external subcommand whose providing package is absent.
The did-you-mean suggestions that often accompany the message come from the same table, which makes them a quick spelling check. For missing external tools, the package providing git-<name> must be installed — no Git configuration creates the command.
Underlying Causes
Frequently Asked Questions
Either their Git version differs or an external tool (LFS, flow, extras) is installed there and registers the subcommand on the PATH.
Indirectly — an alias expands to a command name that must still exist; a typo inside the alias surfaces exactly this message when the alias runs.
Related Git States
Git could not find the file or directory you specified in your command.
Git doesn't know whether you are referring to a branch name or a file path.
Git could not parse your input as a valid commit, branch, or file path.