Git Clients

Githooks – platform-independent Git hooks manager

Githooks is a platform-independent Git hook manager designed to manage scripts stored within individual projects or shared across multiple repositories. It helps development teams maintain consistent checks and automate routine tasks around Git operations without copying scripts into every repository’s local hook directory.

The software uses lightweight wrappers to intercept supported Git events and execute the corresponding scripts from configured hook locations. Project-specific hooks can be maintained alongside application source code, while shared repositories provide a central location for organisation-wide policies.

Githooks deliberately concentrates on executing hooks rather than managing programming language environments or development dependencies. This makes it suitable for teams that already have established tooling and want a flexible way to coordinate its execution.

This is free and open source software.

Key Features

  • Runs version-controlled Git hooks stored in a project’s .githooks directory.
  • Supports shared hook repositories for reusing scripts across multiple projects.
  • Automatically updates shared hook repositories when configured Git events occur.
  • Executes hooks sequentially or in parallel batches using a configurable thread pool.
  • Supports a broad range of client-side and server-side Git hooks.
  • Provides YAML configuration files for specifying hook commands, arguments and environment substitutions.
  • Exposes staged file information to hooks through environment variables.
  • Supports configurable ignore patterns for excluding selected hooks and files.
  • Checks whether hooks are new or modified and requests trust confirmation before execution.
  • Supports optional container-based hook execution, including integration with container image builds.
  • Preserves compatibility with Git LFS hooks and can require Git LFS for selected repositories.
  • Offers manual hook execution, hook inspection and management through a command line interface.
  • Supports local or global configuration, including centralised hook execution for multiple repositories.
  • Provides a platform-independent dialog utility for notifications, user prompts and file selection.
  • Includes configurable update checks and options for disabling hooks locally or globally.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/gabyx/Githooks
Support:
Developer: Gabriel Nützi
License: MIT License

Githooks is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

Git Hook Managers
lefthookGit hooks manager for Node.js, Ruby, Python and more
huskyGit hooks made easy
pre-commitManage and maintain multi-language pre-commit hooks
GrumPHPAutomates PHP code quality checks through configurable Git hooks
prekReimagined version of pre-commit
overcommitManage and configure Git hooks
hkGit hooks manager and project linting tool focusing on performance
simple-git-hooksSimple git hooks manager for small projects
CaptainHookFlexible Git hook manager
GithooksPlatform-independent hooks manager
git-hooksRewritten from icefox/git-hooks, with extra features
AutohookRuns and organises Git hook scripts using a single Bash script
JigGit pre-commit hook on steroids

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted