git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 4/6] user-manual: fix .gitconfig editing examples

From
JFJ. Bruce Fields <bfields@citi.umich.edu>
Date
May 7, 2007, 05:14 UTC
Message-ID
<17154.7676822685$1178514875@news.gmane.org>
In-Reply-To
<1178514845119-git-send-email->
From: J. Bruce Fields <bfields@citi.umich.edu>

Santi Béjar points out that when telling people how to "introduce themselves" to git we're advising them to replace their entire .gitconfig file. Fix that.

Cc: "Santi Béjar <sbejar@gmail.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
---
 Documentation/user-manual.txt |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 03206c5..c292b4d 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -158,7 +158,7 @@ Making changes
 Make sure git knows who to blame:
 
 ------------------------------------------------
-$ cat >~/.gitconfig <<\EOF
+$ cat >>~/.gitconfig <<\EOF
 [user]
 	name = Your Name Comes Here
 	email = you@yourdomain.example.com
@@ -1049,14 +1049,13 @@ Telling git your name
 ---------------------
 
 Before creating any commits, you should introduce yourself to git.  The
-easiest way to do so is:
+easiest way to do so is to make sure the following lines appear in a
+file named .gitconfig in your home directory:
 
 ------------------------------------------------
-$ cat >~/.gitconfig <<\EOF
 [user]
 	name = Your Name Comes Here
 	email = you@yourdomain.example.com
-EOF
 ------------------------------------------------
 
 (See the "CONFIGURATION FILE" section of gitlink:git-config[1] for
-- 
1.5.1.1.98.gedb4f
Previous: J. Bruce FieldsNext: J. Bruce Fields
Message 4 of 9 in “user-manual: more discussion of detached heads, fix typos”
  1. 1/6 user-manual: more discussion of detached heads, fix typosJ. Bruce Fields, May 7, 2007
  2. 2/6 user-manual: add section ID'sJ. Bruce Fields, May 7, 2007
  3. 3/6 user-manual: clean up fast-forward and dangling-objects sectionsJ. Bruce Fields, May 7, 2007
  4. 4/6 user-manual: fix .gitconfig editing examplesJ. Bruce Fields, May 7, 2007
  5. 5/6 user-manual: miscellaneous editingJ. Bruce Fields, May 7, 2007
  6. 6/6 user-manual: stop deprecating the manualJ. Bruce Fields, May 7, 2007
  7. Johannes SchindelinMay 7, 2007
  8. Junio C HamanoMay 7, 2007
  9. J. Bruce FieldsMay 8, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.