cd <your_project>
wget https://raw.githubusercontent.com/Arthyshows/git-hooks-prepare-commit-jira-bitbucket/master/.git_template/hooks/prepare-commit-msg -P .git/hooks/
chmod 775 .git/hooks/prepare-commit-msg
With this command, all of the new repositories created by git init command will get the hook from the template folder.
cd /tmp/
git clone https://github.com/arthurmauvezin/git-hooks-prepare-commit-jira.git
cd git-hooks-prepare-commit-jira/
chmod 755 setup.sh
./setup.sh
cd <your_project>
git init
The prompt will tell you that the project was reinitialized
Reinitialized existing Git repository in /tmp/test/.git/