This is my personal git commit template to keep tidy commit message.
Put the template file here:
~/.git-commit-template.txt
Configure git to use the template file by running:
git config --global commit.template ~/.git-commit-template.txt
Add the template file to the ~/.gitconfig file:
[commit]
template = ~/.git-commit-template.txt