How would you enforce this practice within a team of developers all committing to the same project? Does Git allow you to globally enforce commit templates for a repository?
Good question. As far as I know, no, it doesn't. If there's a neat way to do this, I'd like to know.
Just FYI, we work on a product (Commit Policy Plugin for Jira) that does just that. It's a Jira app, so it's hard wired to work in Jira, but allows you to enforce all kind of rules (to many VCS, not just Git).
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.