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

[PATCH] Improved hint on how to set identity

From
Steffen Prohaska <prohaska@zib.de>
Date
Aug 13, 2007, 22:05 UTC
Message-ID
<1187042750257-git-send-email-prohaska@zib.de>

Users typically want to set the default for their account. Thus, start the hint with how to achieve that; and only later explain how to restrict identity to a single repository.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
---
 ident.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

I watched someone setting up git, who never used it before. The hint was leading him into the wrong direction. He certainly wanted to set a global default. Let's give users the right hint first.

    Steffen
diff --git a/ident.c b/ident.c
index 6612d17..9b2a852 100644
--- a/ident.c
+++ b/ident.c
@@ -185,11 +185,11 @@ static const char *env_hint =
 "\n"
 "Run\n"
 "\n"
-"  git config user.email \"you@email.com\"\n"
-"  git config user.name \"Your Name\"\n"
+"  git config --global user.email \"you@email.com\"\n"
+"  git config --global user.name \"Your Name\"\n"
 "\n"
-"To set the identity in this repository.\n"
-"Add --global to set your account\'s default\n"
+"to set your account\'s default identity.\n"
+"Omit --global to set the identity only in this repository.\n"
 "\n";
 
 const char *fmt_ident(const char *name, const char *email,
-- 
1.5.3.rc4.96.g6ceb
Next: Junio C Hamano
Message 1 of 6 in “Improved hint on how to set identity”
  1. Improved hint on how to set identitySteffen Prohaska, Aug 13, 2007
  2. Junio C HamanoAug 13, 2007
  3. Steffen ProhaskaAug 14, 2007
  4. Junio C HamanoAug 14, 2007
  5. Steffen ProhaskaAug 14, 2007
  6. Junio C HamanoAug 14, 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.