git - 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
.
How to define the adapter using this approach? (without installing it locally or globally)
What is the default adapter used by Commitizen when on NPX? (Couldn't find in their documentation)
解决方案
如果存储库对提交不友好,则运行npx git-cz
将安装并使用streamich/git-cz适配器。
我认为这仅因为包名称冲突而起作用,并且不认为您可以通过这种方式配置不同的适配器。
推荐阅读
- python - 在 python 中读取文件时出现问题:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 168: invalid continuation byte
- laravel - 在控制器中使用 API 资源
- kivy - 向下滚动屏幕以获取更长的文本,例如 kivy 中的故事
- c++ - 没有延迟()的Arduino简单定时循环 - 毫秒()不起作用?
- android - 是否可以使用cordova设置自定义权限请求
- swift - iOS 13 和静音通知
- dimensions - 维数固定时的维数诅咒
- python - 在 Pandas DataFrame 中插入新列和相应的值(有条件)
- c# - 如何为 FakeItEasy 构建一个 HttpResponseHeaders
- c# - 在 C# 中使用 And 和 Or 逻辑查询过滤器