# lefthook

Git hooks manager.

Source: [Console review](<https://console.dev/tools/lefthook>)

Website: [https://lefthook.dev/](<https://lefthook.dev/>)

Profile updated: 2026-10-16

Category: [Git tools](<https://console.dev/tools/categories/developer-tools-git-tools>)

## Supported tech stack

Research checked: 2026-10-11

### Integrates with

- Docker (Integration)
- Git (Integration)
- Node.js (Runtime)
- Python (Language)
- Ruby (Language)

### Written in

- Go (Language)

Source: [Research source](<https://github.com/evilmartians/lefthook>)

Documented compatibility; coverage may be incomplete. Written in describes implementation, not user-project language support.

Go Git-hook manager supports Node.js, Ruby and Python projects plus Docker execution.

## Console’s review — 2025-10-30

Reviewed: 2025-10-30

Author: [David Mytton](<https://console.dev/about#david-mytton>)

Citation: [This review](<https://console.dev/tools/lefthook#review_b4c672c9e1e556aeb1d752eb02fb873cb874eec353d2cb6f880bf49756809ff7>)

### What we like

Define all your Git hooks in YAML. Supports local config to override main config in your repo. Supports interaction with commands or scripts. Can run conditionally e.g. on specific branches or environments. Available as a package for lots of ecosystems e.g. npm, Go, Python, macOS.

### Tradeoffs

Nothing really! Some reports of issues on Windows.

This review reflects Console’s assessment at publication on 2025-10-30. Features and limitations may have changed since the review date.

## Is lefthook a fit?

Based on [Console’s review published on 2025-10-30](<https://console.dev/tools/lefthook#review_b4c672c9e1e556aeb1d752eb02fb873cb874eec353d2cb6f880bf49756809ff7>).

Summary updated: 2026-10-16

### Who it’s for

Developers using various ecosystems should consider lefthook for Git hooks management

### Why consider it

It allows defining Git hooks in YAML

### Keep in mind

It may have issues on Windows

## Earlier review — 2025-02-27

Reviewed: 2025-02-27

Author: [David Mytton](<https://console.dev/about#david-mytton>)

Citation: [This review](<https://console.dev/tools/lefthook#review_d851bc3bb95931fe8a978966c7b471f8b075fe911a0fa52aed88c269d7f68993>)

### What we like

Can be installed through various options e.g. Ruby Gem, Node.js, Go, Homebrew, RPM, Apt, or manually. Simple Yaml config for managing commands to run for each hook. Configs can be overridden with local options. Also supports remote configs. Commands can run in parallel.

### Tradeoffs

If you run commands in parallel you need to deal with locking & concurrency issues e.g. overwriting files.

This review reflects Console’s assessment at publication on 2025-02-27. Features and limitations may have changed since the review date.

[Selection criteria](<https://console.dev/selection-criteria>) · [About Console](<https://console.dev/about>) · [Browse tools](<https://console.dev/tools>)
