Skip to main content

Create Git hooks that get run before a commit.

# To install pre-commit into your Git hooks:
pre-commit install

# To run pre-commit hooks on all staged files:
pre-commit run

# To run pre-commit hooks on all files, staged or unstaged:
pre-commit run --all-files

# To clean pre-commit cache:
pre-commit clean