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