LinuxCommandLibrary

pre-commit

Create Git hooks that get run before a commit.

TLDR

Install pre-commit into your Git hooks

$ pre-commit install
copy


Run pre-commit hooks on all staged files
$ pre-commit run
copy


Run pre-commit hooks on all files, staged or unstaged
$ pre-commit run --all-files
copy


Clean pre-commit cache
$ pre-commit clean
copy

Copied to clipboard