提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
785 B

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