https://github.com/git/git/blob/master/Documentation/githooks.txt
- git 2.9 or newer.
# Get the repository
git clone https://github.com/halo/githooks.git $HOME/.githooks
# Start using them by adding the configuration to your ~/.gitconfig
# This can be commited to your dotfiles, because it is ignored if the directory does not exist.
git config --global core.hooksPath $HOME/.githooks