Improved hint on how to set identity
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>
Steffen Prohaska committed
Aug 14, 2007 at 00:05 UTC
180787c48f21c40a047ae3ee5432821d7e033e44
1 file changed
+4
-4
ident.c
+4
-4
@@ -185,11 +185,11 @@ static const char *env_hint =
185
"\n"
186
"Run\n"
187
"\n"
188
-" git config user.email \"you@email.com\"\n"
189
-" git config user.name \"Your Name\"\n"
188
+" git config --global user.email \"you@email.com\"\n"
189
+" git config --global user.name \"Your Name\"\n"
190
"\n"
191
-"To set the identity in this repository.\n"
192
-"Add --global to set your account\'s default\n"
191
+"to set your account\'s default identity.\n"
192
+"Omit --global to set the identity only in this repository.\n"
193
"\n";
194
195
const char *fmt_ident(const char *name, const char *email,