I am trying to train myself to write better commit messages, so I have created an entry in my ~/.gitconfig
[commit]
template = ~/.gitmessage.txt
The conundrum is that I nearly always use:
git commit -m "Message here"
and sometimes:
git commit -am "Message here"
How can I prevent myself from using the -m flag, so that my template will be presented and I will be reminded to use it?
I don't need to absolutely enforce this in the project, but I would like to wean myself off of "-m".
Ubuntu/Bash is my environment.