git Version 2.9 or later
- Clone the git-hooks repository.
- Open cmd and navigate to repository's directory.
- Register hooksPath globally.
git config --global core.hooksPath %cd%
- Done. Git should now use files from your local git-hooks repository as hooks, as long files name match.