Skip to content

Commit b659015

Browse files
committedSep 6, 2011
Add some information about properly formatted commit messages
It does seem like a lot of github users are not used to good commit message rules, and may never have used git for a project that actually cares about good logs and nice summary lines. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 454a456 commit b659015

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
 

‎README

+21
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,24 @@ the right to pass it on as an open source patch.
4949

5050
See: http://gerrit.googlecode.com/svn/documentation/2.0/user-signedoffby.html
5151

52+
Also, please write good git commit messages. A good commit message
53+
looks like this:
54+
55+
header line: explaining the commit in one line
56+
57+
Body of commit message is a few lines of text, explaining things
58+
in more detail, possibly giving some background about the issue
59+
being fixed, etc etc.
60+
61+
The body of the commit message can be several paragrahps, and
62+
please do proper word-wrap and keep columns shorter than about
63+
74 characters or so. That way "git log" will show things
64+
nicely even when it's indented.
65+
66+
Reported-by: whoever-reported-it
67+
Signed-off-by: Your Name <youremail@yourhost.com>
68+
69+
where that header line really should be meaningful, and really should be
70+
just one line. That header line is what is shown by tools like gitk and
71+
shortlog, and should summarize the change in one readable line of text,
72+
independently of the longer explanation.

0 commit comments

Comments
 (0)