Overcommit is a Git hooks manager. It provides a configurable way to automate checks and other actions associated with Git operations, helping development teams maintain consistent standards across their repositories.
A common difficulty with Git hooks is that the scripts normally live outside version control. Sharing them between developers can involve copying files, maintaining installation instructions and keeping individual scripts synchronised. Overcommit provides a configuration-driven approach that makes these checks easier to distribute and maintain.
The application includes numerous ready-made checks, while still allowing developers to use their existing scripts. It is particularly attractive to teams that want considerable control over hook behaviour without building everything from scratch.
This is free and open source software.
Key Features
- Supports a wide range of Git hook categories, including pre-commit, commit-msg, pre-push, post-commit, post-checkout and post-merge.
- Provides built-in checks for commit message formatting, whitespace problems, code quality and other common development requirements.
- Uses a .overcommit.yml configuration file to control which hooks are enabled and how they behave.
- Allows repository-specific hooks to be stored in version control, alongside shared hooks used across multiple projects.
- Supports existing Git hook scripts without requiring them to be rewritten in Ruby.
- Runs suitable hooks concurrently, with configurable worker counts and individual processor requirements.
- Can filter files using inclusion and exclusion patterns, with shared defaults that apply to multiple hooks.
- Supports Bundler integration to control the Ruby dependencies available during hook execution.
- Checks signatures of custom hook code to help prevent unreviewed changes from executing automatically.
- Can install hooks through Git templates, making them available when new repositories are created or cloned.
- Offers options for skipping selected hooks, controlling output verbosity and running configured checks in continuous integration environments.
- Backs up existing hooks during installation and provides an uninstall command to restore the previous setup.
Website: github.com/sds/overcommit
Support:
Developer: Shane da Silva, Aiden Scandella
License: MIT License
overcommit is written in Ruby. Learn Ruby with our recommended free books and free tutorials.
Related Software
| Git Hook Managers | |
|---|---|
| lefthook | Git hooks manager for Node.js, Ruby, Python and more |
| husky | Git hooks made easy |
| pre-commit | Manage and maintain multi-language pre-commit hooks |
| GrumPHP | Automates PHP code quality checks through configurable Git hooks |
| prek | Reimagined version of pre-commit |
| overcommit | Manage and configure Git hooks |
| hk | Git hooks manager and project linting tool focusing on performance |
| simple-git-hooks | Simple git hooks manager for small projects |
| CaptainHook | Flexible Git hook manager |
| Githooks | Platform-independent hooks manager |
| git-hooks | Rewritten from icefox/git-hooks, with extra features |
| Autohook | Runs and organises Git hook scripts using a single Bash script |
| Jig | Git pre-commit hook on steroids |
Read our verdict in the software roundup.
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. |



Please read our Comment Policy before commenting.