husky

Native Git hooks made easy.

TLDR

Install Husky in the current directory

$ husky install
copy


Install Husky into a specific directory
$ husky install [path/to/directory]
copy


Set a specific command as a pre-push hook for Git
$ husky set [.husky/pre-push] "[command] [command_arguments]"
copy


Add a specific command to the current pre-commit hook
$ husky add [.husky/pre-commit] "[command] [command_arguments]"
copy


Uninstall Husky hooks from the current directory
$ husky uninstall
copy


Display help
$ husky
copy

Copied to clipboard