You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+9-1
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,9 @@ cz commit -s
101
101
```
102
102
103
103
### Integrating with Pre-commit
104
-
Commitizen can lint your commit messages for you with `cz check`.
104
+
105
+
Commitizen can lint your commit message for you with `cz check`.
106
+
105
107
You can integrate this in your [pre-commit](https://pre-commit.com/) config with:
106
108
107
109
```yaml
@@ -128,6 +130,12 @@ If you aren't using both hooks, you needn't install both stages.
128
130
| commitizen | commit-msg |
129
131
| commitizen-branch | pre-push |
130
132
133
+
Note that pre-commit discourages using `master` as a revision, and the above command will print a warning. You should replace the `master` revision with the [latest tag](https://github.com/commitizen-tools/commitizen/tags). This can be done automatically with:
134
+
135
+
```sh
136
+
pre-commit autoupdate
137
+
```
138
+
131
139
Read more about the `check` command [here](check.md).
0 commit comments