The best git hooks managers, according to hackers
5 git hooks managers recommended in Hacker News comments over the past year, ranked by how many separate people recommend each one.
All git hooks managers
- pre-commitRuns linters and checks on changed files before each commit, and the same definitions can run in CI. Critics say hooks break with history edits and cross-platform builds.24recommend
- prekRust reimplementation of pre-commit, compatible with existing hooks and faster, with monorepo support and no Python dependencies. Critics say it does not fix the underlying pre-commit hook problems.13recommend
- LefthookSimple git hook manager that handles formatters well and has simpler dependency handling than pre-commit.7recommend
- HuskySets up git hooks automatically when you install a project's dependencies, so hooks run for everyone on the team. Critics say it assumes a single tech stack and lacks out-of-the-box support that pre-commit offers.6recommend
- hkA fast, drop-in replacement for pre-commit that runs fixers in parallel and stays out of the way. One critic says it lacks pre-commit's out-of-the-box support.5recommend