git pre receive hook to check commit message
<p>I am trying to write a pre-receive hook to check the pattern of the commit messages using bash/shell. </p>

<p>I want to reject the entire push if any commit has issues. How to retrieve the commit messages?</p>