Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
周志凯
/
git-commit-demo
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3a49809f
authored
May 12, 2020
by
周志凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: commit normal
1 parent
128660dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
CHANGELOG.md
README.md
package.json
CHANGELOG.md
0 → 100644
View file @
3a49809
# (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
)
)
README.md
View file @
3a49809
...
...
@@ -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
)
package.json
View file @
3a49809
{
"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"
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment