Git Hooks Generator

Create native Git hooks or Husky-based hooks for pre-commit, commit-msg, and pre-push quality gates.

Hook Setup

Pre-Commit Hook

- Run checks before every commit.
- Run linters only on staged files (fastest).
- Lint the entire project.
- Check formatting on staged files.

Commit-Msg Hook

- Validate commit messages.
- Enforce conventional commit format.

Pre-Push Hook

- Run checks before pushing to remote.

Custom Commands

pre-commit
1

Overview

Git hooks are scripts that run automatically at specific points in your Git workflow. This generator creates safe, cross-platform hook scripts for pre-commit (linting, formatting, secret scanning), commit-msg (conventional commit validation, ticket ID enforcement), and pre-push (tests, typechecking, branch protection) with support for both native Git hooks and Husky.

Need ESLint/Prettier Husky integration?

For a focused Husky + lint-staged + commitlint workflow, use the Code Quality Husky Generator →