
⚓ Easy-to-use Git hooks for automating tasks during Git workflows.
Git hooks are custom scripts you can use to automate tasks which are triggered before or after a Git command is executed. There are two groups of these hooks: client-side and server-side. Client-side hooks are triggered by operations such as committing and merging, while server-side hooks run on network operations such as receiving pushed commits. This repo contains helpful resources as well as a variety of Git hook scripts that can be easily customized to serve different purposes.
✔️ Nothing to install/download
✔️ Code is well-documented
✔️ Grab & go! Copy the code you want to use and paste into your .git/hooks folder
Contributions are always welcome! Please see our Contribution Guidelines. Also, if you don't find the script you want below, you can create a new issue to request it.
Note: The icon next to each script signifies what language it is written in.
| icon | language |
|---|---|
bash | |
python | |
perl |
.env file(s) to code. 
Husky - Manage Git hooks with a nice user interface.
Overcommit - A fully configurable and extendable Git hook manager.
Git Build Hook Maven Plugin - Install Git hooks and config during a Maven build.
CaptainHook - Git hooks manager for PHP developers.
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
This work is licensed under a Creative Commons Attribution 1.0 International License.
2,964 followers · starred Sep 2019
228 followers · starred Apr 2025
190 followers · starred Sep 2019
199 followers · starred Sep 2019

⚓ Easy-to-use Git hooks for automating tasks during Git workflows.
Git hooks are custom scripts you can use to automate tasks which are triggered before or after a Git command is executed. There are two groups of these hooks: client-side and server-side. Client-side hooks are triggered by operations such as committing and merging, while server-side hooks run on network operations such as receiving pushed commits. This repo contains helpful resources as well as a variety of Git hook scripts that can be easily customized to serve different purposes.
✔️ Nothing to install/download
✔️ Code is well-documented
✔️ Grab & go! Copy the code you want to use and paste into your .git/hooks folder
Contributions are always welcome! Please see our Contribution Guidelines. Also, if you don't find the script you want below, you can create a new issue to request it.
Note: The icon next to each script signifies what language it is written in.
| icon | language |
|---|---|
bash | |
python | |
perl |
.env file(s) to code. 
Husky - Manage Git hooks with a nice user interface.
Overcommit - A fully configurable and extendable Git hook manager.
Git Build Hook Maven Plugin - Install Git hooks and config during a Maven build.
CaptainHook - Git hooks manager for PHP developers.
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
This work is licensed under a Creative Commons Attribution 1.0 International License.
2,964 followers · starred Sep 2019
228 followers · starred Apr 2025
190 followers · starred Sep 2019
199 followers · starred Sep 2019