首页 > 解决方案 > How to define Commitizen adapter when using "npx git-cz"?

问题描述

I am trying to adopt a conventional commits like standard to my projects. While searching for linters and other automation tools I stumbled upon commitizen. I want to use it in my project without installing it locally neither globally using the NPX with the command npx git-cz.

标签: gitnpmcommitnpxcommitizen

解决方案


这是commitizen 中的一个已知问题

如果存储库对提交不友好,则运行npx git-cz将安装并使用streamich/git-cz适配器。

我认为这仅因为包名称冲突而起作用,并且不认为您可以通过这种方式配置不同的适配器。


推荐阅读