Description:
Fast and powerful Git hooks manager for any type of projects
|
|
Type: Formula
|
Latest Version: 2.0.12@0
|
Tracked Since: Dec 12, 2025
|
|
Links:
Homepage |
GitHub |
Docs |
@evilmartians |
formulae.brew.sh
|
|
Stars: 7,199 |
Forks: 262 |
Language: Go |
Category: Developer tools
|
|
Tags:
git
hooks
automation
devops
code-quality
|
|
Install:
brew install lefthook
|
About:
Lefthook is a Git hooks manager written in Go, designed to execute scripts on Git events like pre-commit or pre-push. It provides a configuration-as-code approach, allowing teams to define and share hooks in a single file, ensuring consistency across development environments. Its main value proposition is speed, flexibility, and the ability to run scripts in parallel across multiple programming languages.
|
Key Features:
- Configuration-as-code via a single `lefthook.yml` file
- Parallel execution of hooks for improved performance
- Support for scripts in any language (Shell, Node.js, Ruby, Go, etc.)
- Local and shared configurations for team consistency
- Selective hook execution (e.g., only for staged files)
|
Use Cases:
- Enforcing code quality standards (linting, formatting) before commits
- Automating security checks or tests in pre-push hooks
- Standardizing Git workflows across a development team
|
Alternatives:
-
pre-commit
– Python-based, very popular but Lefthook is language-agnostic and often faster
-
husky
– Node.js-centric, while Lefthook is designed for polyglot projects
|
| Detected |
Version |
Rev |
Change |
Commit |
| Dec 26, 2025 7:19am |
2.0.12 |
0 |
VERSION_BUMP |
dccdffff |
| Dec 12, 2025 9:33am |
|
0 |
VERSION_BUMP |
a759a0f1 |
| Dec 8, 2025 8:22am |
|
0 |
VERSION_BUMP |
80e00f23 |
| Dec 2, 2025 8:15pm |
|
0 |
VERSION_BUMP |
2f7ba9b9 |
| Oct 20, 2025 9:10am |
|
0 |
VERSION_BUMP |
c514a311 |
| Sep 23, 2025 2:53pm |
|
0 |
VERSION_BUMP |
559f1ca9 |
| Sep 23, 2025 7:45am |
|
0 |
VERSION_BUMP |
76c3896c |
| Sep 22, 2025 9:44am |
|
0 |
VERSION_BUMP |
ca221d05 |
| Sep 17, 2025 1:32pm |
|
0 |
VERSION_BUMP |
7773f4d0 |
| Sep 15, 2025 4:05pm |
|
0 |
VERSION_BUMP |
ca5c76b0 |
| Sep 11, 2025 9:19am |
|
0 |
VERSION_BUMP |
fa3a73ce |
| Jan 14, 2025 3:24pm |
|
0 |
VERSION_BUMP |
a7ea3761 |
| Jan 13, 2025 11:48am |
|
0 |
VERSION_BUMP |
1ba509cd |
| Jan 10, 2025 2:23pm |
|
0 |
VERSION_BUMP |
2d2e7d95 |
| Jan 10, 2025 8:50am |
|
0 |
VERSION_BUMP |
c3dd4810 |
| Jan 10, 2025 8:01am |
|
0 |
VERSION_BUMP |
a56d5ffb |
| Dec 18, 2024 7:42am |
|
0 |
VERSION_BUMP |
dc538397 |
| Dec 12, 2024 7:15am |
|
0 |
VERSION_BUMP |
9cb131fd |
| Nov 18, 2024 8:56am |
|
0 |
VERSION_BUMP |
6a517258 |
| Oct 23, 2024 11:24am |
|
0 |
VERSION_BUMP |
2c19baa1 |
| Oct 23, 2024 8:25am |
|
0 |
VERSION_BUMP |
bc28fa1e |
| Sep 30, 2024 8:33am |
|
0 |
VERSION_BUMP |
24277e31 |
| Sep 26, 2024 7:46am |
|
0 |
VERSION_BUMP |
51e4e284 |
| Sep 23, 2024 9:00am |
|
0 |
VERSION_BUMP |
24a9de2c |
|