Git development
 help / color / mirror / Atom feed
From: Steffen Prohaska <prohaska@zib.de>
To: git@vger.kernel.org
Cc: Steffen Prohaska <prohaska@zib.de>
Subject: [PATCH] Improved hint on how to set identity
Date: Tue, 14 Aug 2007 00:05:50 +0200	[thread overview]
Message-ID: <1187042750257-git-send-email-prohaska@zib.de> (raw)

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

             reply	other threads:[~2007-08-13 22:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-13 22:05 Steffen Prohaska [this message]
2007-08-13 23:36 ` [PATCH] Improved hint on how to set identity Junio C Hamano
2007-08-14  5:05   ` Steffen Prohaska
2007-08-14  5:22     ` Junio C Hamano
2007-08-14  5:54       ` Steffen Prohaska
2007-08-14  6:32         ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1187042750257-git-send-email-prohaska@zib.de \
    --to=prohaska@zib.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox