Skip to content

jhaws1982/git-hook-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

License

git-hook-installer

I needed a script to easily install new git hooks to any repository, including submodules. All that is required is to download the script to a known location (I like to keep all my hooks together in one location) and run this script, pointing it at the script, the name of the hook, and the repository.

This script also supports installing hooks globally if that is desired.

Personally, I use this to install a git-pre-commit-format script to run verify code formatting using clang-format (https://github.com/barisione/clang-format-hooks) and Commitizen (https://github.com/commitizen/cz-cli) to prepare and format my commit logs per Conventional Commits (https://www.conventionalcommits.org).

About

Script to easily install new git hooks

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages