This only works with Git version 2.9.0 or above.
- Make a new directory in your repository root:
mkdir .githooksand add your git hooks. - Add the
Makefilebelow to your repository root. - Run the makefile:
make - Git add and commit the makefile and .githooks directory.