Lefthook
Lefthook is an open-source tool that manages Git hooks for a project. It provides a centralized, language-agnostic way to run project-specific scripts in response to Git events such as commits and pushes. By replacing or augmenting the native .git/hooks, Lefthook ensures that checks like tests, linters, or formatting run consistently across developer machines.
Configuration is done in a YAML file named lefthook.yml placed at the repository root. The file defines
Installation and basic usage typically involve adding Lefthook to the project’s development tooling and running an
Lefthook emphasizes portability across operating systems and is commonly used in both open-source and commercial projects.