From 4040b1d4a8f7c73642f9180aa6538551985bb87b Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Tue, 14 Jun 2022 20:07:16 +1200 Subject: [PATCH] feat(git): override default template --- git/.config/git/config | 1 + git/.config/git/template | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 git/.config/git/template diff --git a/git/.config/git/config b/git/.config/git/config index 0832e57..f459d47 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -31,6 +31,7 @@ [commit] gpgsign = true + template = ~/.config/git/template [sendemail] smtpserver = smtp.little.kiwi diff --git a/git/.config/git/template b/git/.config/git/template new file mode 100644 index 0000000..d53a3ac --- /dev/null +++ b/git/.config/git/template @@ -0,0 +1,20 @@ + +# Title: Summary, imperative, start upper case, don't end with a period +# No more than 50 chars. #### 50 chars is here: # + +# Remember blank line between title and body. + +# Body: Explain *what* and *why* (not *how*). Include task ID (Jira issue). +# Wrap at 72 chars. ################################## which is here: # + +# How to Write a Git Commit Message: +# https://chris.beams.io/posts/git-commit/ +# +# 1. Separate subject from body with a blank line +# 2. Limit the subject line to 50 characters +# 3. Capitalize the subject line +# 4. Do not end the subject line with a period +# 5. Use the imperative mood in the subject line +# 6. Wrap the body at 72 characters +# 7. Use the body to explain what and why vs. how +