Commit 3a49809f by 周志凯

docs: commit normal

1 parent 128660dc
# (2020-05-12)
### Bug Fixes
* rm test file ([f69f1fd](http://139.217.92.77:55676/zhouzk/git-commit-demo/commits/f69f1fd93c8cc52b50ff5ababd90372ba93c29d4))
### Features
* add test file ([0d8f6fb](http://139.217.92.77:55676/zhouzk/git-commit-demo/commits/0d8f6fb404af6cca6a7ffa738daa6f5e8ed34cc0))
......@@ -2,9 +2,22 @@
## install packages
步骤:
1. 全局安装 commitizen & cz-convertional-changelog
2. 项目内安装commitlint & husky
3. 添加配置
4.
```shell
npm i commitizen -g
## 支持 Angular 的 commit message 格式
commitizen init cz-conventional-changelog --save --save-exact
```
\ No newline at end of file
```
参考资料
[Git Guide](https://zj-git-guide.readthedocs.io/zh_CN/latest/message/Conventional提交规范)
[CZ工具使用-规范Git提交说明](https://juejin.im/post/5cc4694a6fb9a03238106eb9)
[大厂Git提交规范](https://zhuanlan.zhihu.com/p/100773495)
{
"name": "git-commit-demo",
"version": "1.0.0",
"description": "demo of test git-commit",
"main": "index.js",
"dependencies": {
......@@ -12,6 +11,7 @@
"cz-customizable": "^6.2.0"
},
"scripts": {
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!