Command-line tool
pre-commit
brew/pre-commit
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Framework for managing multi-language pre-commit hooks
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
pipx install pre_commit
macOS
brew install pre-commit pipx install pre_commit
Linux
brew install pre-commit pipx install pre_commit
Install pre-commit into your Git hooks
pre-commit install
Run pre-commit hooks on all staged files
pre-commit run
Run pre-commit hooks on all files, staged or unstaged
pre-commit run --all-files
Related command-line tools
- prek
Fast Git hook manager written in Rust, drop-in alternative to pre-commit git pre-commit git-hooks prek - mit-commit-message-lints
Check the correctness of a specific commit message. Designed to be used in tools providing commit-msg style hooks - hk
Git hook and pre-commit lint manager - gitmoji
Interactive command-line tool for using emoji in commit messages - mit-prepare-commit-msg
This hook is invoked by git-commit right after preparing the default log message, and before the editor is started. - git-journal
The Git Commit Message and Changelog Generation Framework - capstone
Multi-platform, multi-architecture disassembly framework - gersemi
Formatter to make your CMake code the real treasure formatter cmake cmake-format cmake-language cmakelists…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents