Place the below file into a directory that will be hidden away like ~/.config/
and name it .git-commit-template.txt
. You will then have to run a git config
to enable it.
git config --global commit.template /home/$USER/.config/.git-commit-template.txt
To prevent git from using the template as the commit message if you allow empty commit message, you'll need to set this: