snippetbashTip
husky — Native Git hooks made easy. More information: <https://typicode.github.io/husky/>.
Viewed 0 times
commandhuskyeasynativeclimadehooksgit
Problem
How to use the
husky command: Native Git hooks made easy. More information: <https://typicode.github.io/husky/>.Solution
husky — Native Git hooks made easy. More information: <https://typicode.github.io/husky/>.Install Husky in the current directory:
husky installInstall Husky into a specific directory:
husky install {{path/to/directory}}Set a specific command as a
pre-push hook for Git:husky set {{.husky/pre-push}} "{{command}} {{command_arguments}}"Add a specific command to the current
pre-commit hook:husky add {{.husky/pre-commit}} "{{command}} {{command_arguments}}"Uninstall Husky hooks from the current directory:
husky uninstallDisplay help:
huskyCode Snippets
Install Husky in the current directory
husky installInstall Husky into a specific directory
husky install {{path/to/directory}}Set a specific command as a `pre-push` hook for Git
husky set {{.husky/pre-push}} "{{command}} {{command_arguments}}"Add a specific command to the current `pre-commit` hook
husky add {{.husky/pre-commit}} "{{command}} {{command_arguments}}"Uninstall Husky hooks from the current directory
husky uninstallContext
tldr-pages: common/husky
Revisions (0)
No revisions yet.