Skip to content

Instantly share code, notes, and snippets.

@mstrehler
Forked from danielfilho/.git_commit_msg.txt
Last active March 2, 2016 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstrehler/2ffc2b41a703ba8dac71 to your computer and use it in GitHub Desktop.
Save mstrehler/2ffc2b41a703ba8dac71 to your computer and use it in GitHub Desktop.
Template for commit messages.
# If this commit is applied, it will ...
# Why was this change made?
# Any references to tickets, articles etc?

Rules For A Better Commit Message

  1. First line is always 50 characters or less
  2. First character is uppercase
  3. No period ad the end of first line
  4. Blank line after first line
  5. Never use the -m flag to git commit
  6. Includ a link to issue in the commit message
git config --global commit.template ~/.git_commit_msg.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment