From ae34fce67273b9c0a5f655d7dab4150277965c1f Mon Sep 17 00:00:00 2001
From: Anders Nilsson <anders@angsro14.se>
Date: Thu, 21 Mar 2013 17:03:13 +0100
Subject: [PATCH] Added snippet about setting EDITOR

---
 git-tutorial.tex | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/git-tutorial.tex b/git-tutorial.tex
index 4c3d6ab..5091566 100644
--- a/git-tutorial.tex
+++ b/git-tutorial.tex
@@ -278,8 +278,16 @@ A brief explanation of the command options. \verb|-a| means that all
 modified files will be staged before commit, without it we would only
 commit newly added files. \verb|-m| says that a revision comment will
 follow efter it, without it a text editor (perhaps vi) would start and
-allow you to edit a more comprehensive comment.
+allow you to edit a more comprehensive comment. If you are not
+comfortable with using the system default editor (which may be quite
+understandable if that editor is \emph{vi}) you can easily set your
+shell to use another editor by entering
+\begin{lstlisting}
+andersn@stodola: export EDITOR=nano
+\end{lstlisting}
 
+If you by mistake become stuck in vi and do not know how to get out,
+the sequence \verb|<Esc> <Esc>:q!<enter>| should liberate you.
 
 After performing the first commit, work goes on. New files are added
 and existing files are edited. Whenever it feels motivated, add new
-- 
GitLab