If you want to have a sentence or reminder pop-up in every commit subject it’s pretty easy to do. I was typing this by hand for most of my commits and got sick of it and found an easy way to solve the issue.
These directions will make it so that each time you commit to every repository some text will pop up in the subject of your commit but it’s also possible to do per repository.
First create a file in your home directory
Then add the text you want to be added to the subject of every commit
Once you have that you just have to run a simple command to set this as your template for each commit globally
git config --global commit.template ~/.commit-template
Leave a Reply
You must be logged in to post a comment.