Using Git commit message templates to write better commit messages
This is a good idea, but in practice after a few commits you learn all the principles and don&#x27;t need a wall of text in your commit template. Getting feedback in your PRs about your commit messages helps quickly reinforce learning these best practices. (you do review the commit message when doing PRs, right? ;)<p>I&#x27;m a big fan of Conventional Commits[1], so my commit template reminds me of the types and provides an actual template to describe my change:<p><pre><code>    &lt;type&gt;(optional scope):
    # type: build ci chore docs feat fix perf refactor revert style test
 
    Problem:
 
    Solution:
 
    Testing:
 
    Issue:
</code></pre>
Where Problem describes why this change is needed, Solution is what this change delivers, and Testing is how this change was validated. Issue is the JIRA&#x2F;Github issue related to this change.<p>EDIT: The Problem&#x2F;Solution&#x2F;Testing&#x2F;Issue is not part of Conventional Commits, I added those to give structure to the body.<p>[1] <a href="https:&#x2F;&#x2F;www.conventionalcommits.org&#x2F;en&#x2F;v1.0.0&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.conventionalcommits.org&#x2F;en&#x2F;v1.0.0&#x2F;</a>