Skip to content

Commit 4684800

Browse files
committed
docs: note about default_install_hook_types
simpler install
1 parent d14ec45 commit 4684800

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ Create a blank configuration file at the root of your repo, if needed:
1515
touch .pre-commit-config.yaml
1616
```
1717

18-
Add a new repo entry to your configuration file:
18+
Add/update `default_install_hook_types` and add a new repo entry in your configuration file:
1919

2020
```yaml
21+
default_install_hook_types:
22+
- pre-commit
23+
- commit-msg
24+
2125
repos:
2226
# - repo: ...
2327

@@ -32,7 +36,7 @@ repos:
3236
Install the `pre-commit` script:
3337

3438
```console
35-
pre-commit install --hook-type commit-msg
39+
pre-commit install --install-hooks
3640
```
3741

3842
Make a (normal) commit :x::

0 commit comments

Comments
 (0)