[MacPorts] WorkingWithGit modified
MacPorts
noreply at macports.org
Tue Nov 1 02:59:19 CET 2016
Page "WorkingWithGit" was changed by dstrubbe
Diff URL: <https://trac.macports.org/wiki/WorkingWithGit?action=diff&version=67>
Revision 67
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: WorkingWithGit
=========================================================================
--- WorkingWithGit (version: 66)
+++ WorkingWithGit (version: 67)
@@ -70,6 +70,10 @@
=== Commit messages === #commitmessages
+To set which text editor is used by git for writing commit messages, you can do either of:
+ * Set {{{core.editor}}} in your Git config: {{{git config --global core.editor "emacs"}}}
+ * Set the {{{GIT_EDITOR}}} environment variable: {{{export GIT_EDITOR=emacs}}}
+
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
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/WorkingWithGit>
MacPorts <https://www.macports.org/>
Ports system for macOS
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 admin at macports.org.
More information about the macports-changes
mailing list