Skip to content

Zheng-Kun/cz-ah-commit

Repository files navigation

cz-ah-commit

Commitizen adapter formatting commit messages for ah.

使用方法

1.全局安装

npm install -g commitizen
npm install -g cz-ah-commit
// 在全局新建一个 .czrc 配置文件(也可以在项目内配置)
echo '{ "path": "cz-ah-commit" }' > ~/.czrc

// 使用时
使用`git cz` 代替 `git commit` 提交

2.项目内安装

npm install -D commitizen
npm install -D cz-ah-commit

在项目根目录新建 .czrc文件,并写入以下配置,

{
  "path": "cz-ah-commit"
}

或者直接将配置写在package.json文件中

"config": {
  "commitizen": {
    "path": "cz-ah-commit"
  }
},

使用 npx cz 提交

或者在package.json配置以下命令,使用 npm run commit 提交

"scripts": {
  "commit": "cz"
}

About

commit message格式化

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published