Create a directory ~/.git-hooks/ and copy the commit-msg
file into the directory.
Run: git config --global core.hooksPath /Users/<username>/.git-hooks/
You will need to copy the commit-msg
file into .git/hooks/
of any existing repository.
All new repositories will automatically get the hook.