lefthook install
Creates an empty lefthook.yml if a configuration file does not exist.
Installs configured hooks to Git hooks.
Note: NPM package
lefthookinstalls the hooks in a postinstall script automatically. For projects not using NPM package runlefthook installafter cloning the repo.
Installing specific hooks
You can install only specific hooks by running lefthook install <hook-1> <hook-2> ....