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

[PATCH] user-manual: set user.name and user.email with repo-config

From
MLMatthias Lederhofer <matled@gmx.net>
Date
Jan 28, 2007, 00:22 UTC
Message-ID
<20070128002246.GA10179@moooo.ath.cx>
In-Reply-To
<20070127062826.GE14205@fieldses.org>
---
There are some other places where direct editing of .git/config is
suggested.  I'd rather tell the user to use repo-config and add a note
that repo-config saves the configuration to .git/config (or
~/.gitconfig with --global) which can be edited by hand too.
cat .git/config to show the remote configuration can be replaced by
git-repo-config -l | grep '^remote\.'
---
 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 87c605f..7a286d4 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -153,11 +153,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 repo-config --global user.name "Your Name Comes Here"
+$ git repo-config --global user.email you@yourdomain.example.com
 ------------------------------------------------
 
 Select file contents to include in the next commit, then make the
-- 
1.5.0.rc2.g18af
Previous: J. Bruce FieldsNext: Linus Torvalds
Message 2 of 18 in “git user's manual”
  1. J. Bruce FieldsJan 27, 2007
  2. user-manual: set user.name and user.email with repo-configMatthias Lederhofer, Jan 28, 2007
  3. Linus TorvaldsJan 28, 2007
  4. Matthias LederhoferJan 28, 2007
  5. Linus TorvaldsJan 28, 2007
  6. Junio C HamanoJan 28, 2007
  7. Jakub NarebskiJan 28, 2007
  8. Tom PrinceJan 28, 2007
  9. Junio C HamanoJan 28, 2007
  10. Junio C HamanoJan 28, 2007
  11. Nicolas PitreJan 28, 2007
  12. Jakub NarebskiJan 28, 2007
  13. J. Bruce FieldsJan 28, 2007
  14. Linus TorvaldsJan 28, 2007
  15. Junio C HamanoJan 29, 2007
  16. Make fsck and fsck-objects be builtins.Mark Wooding, Jan 29, 2007
  17. Junio C HamanoJan 29, 2007
  18. J. Bruce FieldsJan 29, 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.