Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-document
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
front-document
Commits
be9f029d
Commit
be9f029d
authored
Jun 02, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 完善文档
parent
2a1b63fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Git使用规范.md
Git使用规范.md
+4
-4
No files found.
Git使用规范.md
View file @
be9f029d
...
@@ -42,11 +42,11 @@
...
@@ -42,11 +42,11 @@
### commit 插件集成方式
### commit 插件集成方式
- 安装插件:
- 安装插件:
> npm install -D validate-commit-msg husky
- npm install -D validate-commit-msg husky
- yarn add -D validate-commit-msg husky
> yarn add -D validate-commit-msg husky
- 新建.vcmrc 文件
- 新建.vcmrc 文件
```
```
json
{
{
"types":
[
"feat", "fix", "docs", "style", "refactor", "perf", "test", "chore"
]
,
"types":
[
"feat", "fix", "docs", "style", "refactor", "perf", "test", "chore"
]
,
"scope": {
"scope": {
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
}
}
```
```
- git 钩子中执行
- git 钩子中执行
```
```
json
"husky": {
"husky": {
"hooks": {
"hooks": {
"commit-msg": "validate-commit-msg"
"commit-msg": "validate-commit-msg"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment