Skip to content

Commit 63f4492

Browse files
committed
modify(git): add commit msg style
1 parent 9c522b3 commit 63f4492

5 files changed

Lines changed: 60 additions & 5 deletions

File tree

common/git/readme.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Git
1+
## line
22

33
1. [git introduce](./1.introduce.md)
44
2. [git install](./2.install.md)
@@ -8,6 +8,61 @@
88
6. [git theory](./6.theroy.md)
99
7. [github](./7.github.md)
1010

11+
---
12+
13+
## [commit msg](https://github.com/conventional-changelog/commitlint?tab=readme-ov-file#what-is-commitlint)
14+
15+
1. format: `type(scope?): subject`
16+
2. type: angular style
17+
18+
- **perf**: 改进性能
19+
- **modify**: 修改功能
20+
- **delete**: 删除代码
21+
- build: 构建流水线
22+
- refactor
23+
- style: 不影响代码含义的修改(如 formart)
24+
- revert
25+
-
26+
- test
27+
- docs
28+
- fix
29+
- chore
30+
- feat: 心功能
31+
-
32+
- ci: 自动化流程
33+
34+
3. release with github action
35+
36+
```yaml
37+
name: Release
38+
39+
permissions:
40+
contents: write
41+
42+
on:
43+
push:
44+
tags:
45+
- 'v*'
46+
47+
jobs:
48+
release:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: actions/checkout@v4
52+
with:
53+
fetch-depth: 0
54+
- name: Set node
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: 20
58+
- name: Release
59+
run: npx changelogithub
60+
env:
61+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
62+
```
63+
64+
---
65+
1166
## reference
1267
1368
1. [offical website](https://git-scm.com/docs)

database

optimize

0 commit comments

Comments
 (0)