validate-commit-msg
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 commit-msg
githook.
Credits
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.