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

[PATCH] user-manual: Use "git config --global" instead of editing ~/.gitconfig

From
Johan Herland <johan@herland.net>
Date
May 10, 2007, 21:53 UTC
Message-ID
<200705102353.31821.johan@herland.net>

Use git-config for setting global user.name and user.email rather than telling the user to edit ~/.gitconfig directly. This brings user-manual.txt in line with tutorial.txt.

Signed-off-by: Johan Herland <johan@herland.net>
---
 Documentation/user-manual.txt |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/Documentation/user-manual.txt 
b/Documentation/user-manual.txt
index 13db969..23e2f45 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -158,11 +158,8 @@ Making changes
 Make sure git knows who to blame:
 
 ------------------------------------------------
-$ cat >>~/.gitconfig <<\EOF
-[user]
-	name = Your Name Comes Here
-	email = you@yourdomain.example.com
-EOF
+$ git config --global user.name "Your Name Comes Here"
+$ git config --global user.email you@yourdomain.example.com
 ------------------------------------------------
 
 Select file contents to include in the next commit, then make the
-- 
1.5.0.7
Next: J. Bruce Fields
Message 1 of 9 in “user-manual: Use "git config --global" instead of editing ~/.gitconfig”
  1. user-manual: Use "git config --global" instead of editing ~/.gitconfigJohan Herland, May 10, 2007
  2. J. Bruce FieldsMay 10, 2007
  3. Johan HerlandMay 10, 2007
  4. Petr BaudisMay 10, 2007
  5. J. Bruce FieldsMay 11, 2007
  6. Junio C HamanoMay 11, 2007
  7. Nicolas PitreMay 11, 2007
  8. Jan HudecMay 11, 2007
  9. Junio C HamanoMay 10, 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.