Hello, I am trying to setup a post-commit hook to check the format of the commit message (basically to enforce that it references a corresponding Jira issue number). I see some threads about POST messages, but I'm unclear how to set this up and how it can deny the commit if that's what we want it to do?
Should I be thinking of this in terms of each user's git repository? Do we embed the post-commit hook into the .git directory and then rely on this working PRIOR to any pushes?