Skip to content

Commit 7e11052

Browse files
oherralagitster
authored andcommitted
config: fix settings in default_user_config template
The name (not user) and email setting should be in config section "user" and not in "core" as documented in Documentation/config.txt. Signed-off-by: Ossi Herrala <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9830534 commit 7e11052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,9 @@ static char *default_user_config(void)
463463
struct strbuf buf = STRBUF_INIT;
464464
strbuf_addf(&buf,
465465
_("# This is Git's per-user configuration file.\n"
466-
"[core]\n"
466+
"[user]\n"
467467
"# Please adapt and uncomment the following lines:\n"
468-
"# user = %s\n"
468+
"# name = %s\n"
469469
"# email = %s\n"),
470470
ident_default_name(),
471471
ident_default_email());

0 commit comments

Comments
 (0)