UNPKG

742 BMarkdownView Raw
1# Hooks
2
3Husky supports all git hooks (https://git-scm.com/docs/githooks). Simply add the corresponding `npm script` to your `package.json`.
4
5| Git hook | npm script |
6| -------- | ---------- |
7| applypatch-msg | applypatchmsg |
8| commit-msg | commitmsg |
9| post-applypatch | postapplypatch |
10| post-checkout | postcheckout |
11| post-commit | postcommit |
12| post-merge | postmerge |
13| post-receive | postreceive |
14| post-rewrite | postrewrite |
15| post-update | postupdate |
16| pre-applypatch | preapplypatch |
17| pre-auto-gc | preautogc |
18| pre-commit | precommit |
19| pre-push | prepush |
20| pre-rebase | prerebase |
21| pre-receive | prereceive |
22| prepare-commit-msg | preparecommitmsg |
23| push-to-checkout | pushtocheckout |
24| update | update |