This provides you a binary that you can use as a githook to validate the commit message. I recommend
ghooks. You'll want to make this part of the
This was originally developed by contributors to the angular.js project. I pulled it out so I could re-use this same kind of thing in other projects.