At our company we are moving from svn to git. For issue tracking we use JIRA from Atlassian.
Now we want to enforce that every commit message contains an issue numbe
Git hook is not copied when a repository is cloned. We recommend using husky. This can help in publishing git hooks to everyone who clones the repo.
To mandate git commit to include a jira id reference. I have configured that in a repo - husky-jira-demo. Hope this can address your requirement.