Skip to content

Commit

Permalink
Improved hint on how to set identity
Browse files Browse the repository at this point in the history
The first thing we teach in the tutorial is to set the default
identity in $HOME/.gitconfig using "git config --global".  The
suggestion in the error message should match the order, while
hinting that per repository identity can later be configured
differently.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
sprohaska authored and gitster committed Aug 14, 2007
1 parent 30c5cd3 commit 180787c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ident.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 180787c

Please sign in to comment.