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
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ cz commit -s
101
101
```
102
102
103
103
### Integrating with Pre-commit
104
+
104
105
Commitizen can lint your commit message for you with `cz check`.
105
106
You can integrate this in your [pre-commit](https://pre-commit.com/) config with:
106
107
@@ -119,6 +120,12 @@ After the configuration is added, you'll need to run
119
120
pre-commit install --hook-type commit-msg
120
121
```
121
122
123
+
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:
124
+
125
+
```sh
126
+
pre-commit autoupdate
127
+
```
128
+
122
129
Read more about the `check` command [here](check.md).
0 commit comments