$ mv commit-msg* .git/hooks
$ chmod u+x .git/hooks/commit-msg*
Follow the prompt instructions when committing.
- 'abort' quits the commit.
- 'edit' launches the $EDITOR with annotations specifying where the offending lines are.
- 'ignore' uses the commit message as-is.
Borrowed from: http://addamhardy.com/blog/2013/06/05/good-commit-messages-and-enforcing-them-with-git-hooks/
With modifications by: Jon Roelofs jonathan@codesourcery.com