• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Notes to Self

  • Aviation Weather from NOAA Plugin
    • KZZV
    • Bad Shortcode
    • Simple Metar
  • Meetings
  • Meetings Map

Mark Chouinard / May 13, 2016

Nudging Myself Toward Better Git Commit Messages

In an effort to improve my Git commit messages I’ve decided to employ a commit message template.

This starts with a file in my Home directory

vi ~/.git-commit-msg-template

Three simple lines beginning with # so if I ignore them, so does Git.

# What this commit does

# Why this commit is being made

# Any other notes, links, thoughts, etc...

Then it gets added to the global Git config.

git config --global commit.template ~/.git-commit-msg-template

As with any resolution, time will tell.

Filed Under: Version Control Tagged With: commit message, git

Primary Sidebar

Footer

Copyright © 2021 · machouinard · Log in