Lefthook
Fast, polyglot Git hooks manager. Run linters, formatters, and tests automatically on commit, push, and merge.
46 commands
Browse by Topic
Install Lefthook (macOS)
Install Lefthook git hooks manager using Homebrew on macOS
Install Lefthook (npm)
Install Lefthook as a dev dependency via npm
Initialize Lefthook
Set up Lefthook git hooks in the current repository
Install hooks
Install Git hooks in repository.
Add to project
Add pre-commit hook with template.
Create config
Create default lefthook.yml.
Install via npm
Install Lefthook as npm dev dependency.
Install via Go
Install Lefthook via Go toolchain.
Force reinstall hooks
Force reinstall all Git hooks.
Add pre-push hook
Add pre-push hook with template.
Add commit-msg hook
Add commit-msg hook with template.
Run hook manually
Run pre-commit hook manually.
Run all hooks
Run on all files, not just staged.
Run specific command
Run specific command only.
Run with verbose output
Run hook with detailed output logging.
Run with no TTY
Run without interactive terminal for CI.
Run pre-push hook
Manually trigger pre-push hook.
Run commit-msg hook
Manually trigger commit-msg hook.
Uninstall hooks
Remove all Git hooks.
Skip hooks once
Skip hooks for single commit.
Skip via env var
Skip hooks with environment.
Check version
Show Lefthook version.
Verbose debug output
Enable verbose logging for debugging hooks.
Upgrade via npm
Upgrade Lefthook to latest version.
Skip specific hook
Skip a named command during hook run.
Validate config
Dump resolved config to verify correctness.
Use local overrides
Add local overrides not committed to repo.
NPM postinstall hook
Auto-install hooks after npm install.
Discussion
Loading comments...