Copy the setup-git-hook-commit-msg.sh
file to the root of your repo, make it executable and execute it.
chmod +x setup-git-hook-commit-msg.sh
sh setup-git-hook-commit-msg.sh
Done!
Inspired by https://gist.github.com/pgilad/5d7e4db725a906bd7aa7 by Gilad Peleg