[MacPorts] WorkingWithGit modified

MacPorts noreply at macports.org
Sat Aug 20 14:01:52 PDT 2016

Page "WorkingWithGit" was changed by cal at macports.org
Diff URL: <https://trac.macports.org/wiki/WorkingWithGit?action=diff&version=10>
Revision 10
Comment: How to write a commit message.
Index: WorkingWithGit
--- WorkingWithGit (version: 9)
+++ WorkingWithGit (version: 10)
@@ -132,7 +132,17 @@
 '''Warning:''' `git pull` without the `--rebase` flag is a shorthand for `git fetch && git merge origin/master`, which will automatically create a merge commit if it thinks that's necessary.
 === Commit messages === #commitmessages
+There are a number of conventions to writing Git commit messages. For a detailed explanation, see http://chris.beams.io/posts/git-commit/. As a tl;dr, here are seven short rules:
+ 1. Separate subject from body with a blank line
+ 1. Limit the subject line to 50 characters
+ 1. Capitalize the subject line
+ 1. Do not end the subject line with a period
+ 1. Use the imperative mood in the subject line
+ 1. Wrap the body at 72 characters
+ 1. Use the body to explain what and why vs. how
 === Repository split === #reposplit

Page URL: <https://trac.macports.org/wiki/WorkingWithGit>
MacPorts <https://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'WorkingWithGit' page.
If it was not you, please report to .

More information about the macports-changes mailing list