Lefthook is a command-line manager for Git hooks. It runs linters, formatters, tests and other scripts when a developer commits or pushes code, so the same checks run the same way for everyone on a team. It is aimed at developers and teams who want to control their pre-commit and related hook setup in one configuration file.
The project is written in Go and is distributed under the MIT license, with its source code publicly available on GitHub. It is listed for Windows on winget. Because the source is open and the license is permissive, it can be used freely and inspected or modified by its users.
Alternatives to Lefthook
Products that do a similar job in Developer Tools.
lazygit
Terminal UI for running git commands with keyboard shortcuts
bat
command-line file viewer with syntax highlighting and git integration
GitHub CLI
Command line tool for working with GitHub from the terminal
Worktrunk
command-line helper for managing Git worktrees
onefetch
Command-line tool that shows a summary of a Git repository
gitui
Keyboard-driven terminal interface for git repositories
GitKraken CLI
command-line interface for GitKraken services
git-history
Browse the commit history of a single file in a git repository