commands.sh

pre-commit

all

Create Git hooks that get run before a commit.

More info →

Examples (5)

Install pre-commit into your Git hooks

Run pre-commit hooks on all staged files

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

pre-commit run --all-files

Clean pre-commit cache

Update pre-commit configuration file to the latest repos' versions

pre-commit autoupdate
made by @shridhargupta | data from tldr-pages