Integration of JIRA issue in git commit message

I would like to know how do we integrate/establish a connection to JIRA issues because i want to implement sever-side hooks to enforce the developer to include the JIRA issue ID in their commit message . please help me.

Thanks in advance!