commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter
http://commitizen.github.io/cz-cli/
MIT License
16.58k stars 552 forks source link

git: 'cz' is not a git command. #925

Open shaobeichen opened 2 years ago

shaobeichen commented 2 years ago

image

git cz doesn't work

npx cz work

Repeated installation many times, restarted vscode and computer many times.

In some projects it is possible, in some projects it is not.

Zhengqbbb commented 2 years ago

maybe can help u: https://cz-git.qbb.sh/faq/#cannot-find-command-after-global-install

Zhengqbbb commented 2 years ago

Try running the command cz if there is an error

shaobeichen commented 2 years ago

Try running the command cz if there is an error

yes, cz is works

OmgImAlexis commented 1 year ago

This is not a git plugin. There is no git cz command.

This issue can be closed.

travi commented 1 year ago

There is no git cz command.

custom git commands can be added by making commands named as git-<command-name> available on the $PATH. i'm having trouble finding official documentation about this other than a brief mention here, but many blog articles are available to describe in more detail, like this one.

since this package defines git-cz as one of its bin commands, as long as this package is installed globally and global packages are properly available on the $PATH, git cz should be available as a valid command.