How to Write a Git Commit Message


102 bookmarks. First posted by loki february 2017.


If you browse the log of any random Git repository, you will probably find its commit messages are more or less a mess. For example, take a look at from my early days committing to Spring: Which would you rather read? via Pocket
16 days ago by billchristian
The seven rules of a great Git commit message

Keep in mind: This has all been said before.

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

https://web.archive.org/web/20170606073413/https://chris.beams.io/posts/git-commit/
https://archive.is/Fn3MI

References
http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
https://www.git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project#_commit_guidelines
https://github.com/torvalds/subsurface-for-dirk/blob/master/README#L92-L120
http://who-t.blogspot.co.at/2009/12/on-commit-messages.html
https://github.com/erlang/otp/wiki/writing-good-commit-messages
https://github.com/spring-projects/spring-framework/blob/30bce7/CONTRIBUTING.md#format-commit-messages
git  commit  language 
17 days ago by coffeebucket
How to Write a Git Commit Message - Added September 13, 2015 at 11:55PM
git 
6 weeks ago by xenocid
In this post, Chris Beams addresses the most basic element of keeping a healthy commit history: how to write an individual commit message.
development  git  documentation 
9 weeks ago by billglover
Fortunately, there are well-established conventions as to what makes an idiomatic Git commit message. Indeed, many of them are assumed in the way certain Git commands function. There’s nothing you need to re-invent. Just follow these seven rules and you’re on your way to committing like a pro.
git  commit  message  guideline  style  writing 
11 weeks ago by rbardini
How to Write a Git Commit Message
git 
12 weeks ago by jpalat
How to Write a Git Commit Message via Instapaper http://ift.tt/2mjeue7
IFTTT  Instapaper 
12 weeks ago by chaoxian
2. Limit the subject line to 50 characters
git  tips 
march 2017 by amadamala
RT : How to Write a Git Commit Message (2014): ( )
from twitter
march 2017 by mjr5749
31 Aug 2014 | revision history | | Introduction: Why good commit messages matter If you browse the log of any random Git repository, you will probably find its…
from instapaper
march 2017 by jrubenoff