path: root/ident.c
diff options
authorSteffen Prohaska <>2007-08-13 22:05:50 (GMT)
committerJunio C Hamano <>2007-08-14 06:34:38 (GMT)
commit180787c48f21c40a047ae3ee5432821d7e033e44 (patch)
treeddc774e8fc862a2572d978426db88f812c065406 /ident.c
parent30c5cd312472574f6a8d8c82ba7c4af76d43ff7c (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'ident.c')
1 files changed, 4 insertions, 4 deletions
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 =
-" git config \"\"\n"
-" git config \"Your Name\"\n"
+" git config --global \"\"\n"
+" git config --global \"Your Name\"\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"
const char *fmt_ident(const char *name, const char *email,