Based on joelparkerhenderson/git_commit_template with guidelines from mozilla/fxa.
- Create the file
~/.git_commit_templatewith the template above (customized as you see fit) and save it. - Set the template in your Git config with one of two ways:
- In the command line:
git config --global commit.template ~/.git_commit_template - In your
.gitconfigfile:
[commit] template = ~/.git_commit_template - In the command line:
Now, when you commit without the -m flag, your default editor will open with this template pre-populated as the message.