To use add the following snippet to ~/.gitconfig
:
[commit]
template = ~/path/to/git_commit_template.txt
I was inspired/informed by the following sources:
The Bike Shed - Episode 248: Here Be Dragons
joelparkerhenderson/git_commit_template
Using Git Commit Message Templates to Write Better Commit Messages