Skip to content

Commit 1add9ae

Browse files
committed
Merge branch 'oh/fix-config-default-user-name-section' into maint-2.3
The default $HOME/.gitconfig file created upon "git config --global" that edits it had incorrectly spelled user.name and user.email entries in it. * oh/fix-config-default-user-name-section: config: fix settings in default_user_config template
2 parents 13ec221 + 7e11052 commit 1add9ae

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
@@ -455,9 +455,9 @@ static char *default_user_config(void)
455455
struct strbuf buf = STRBUF_INIT;
456456
strbuf_addf(&buf,
457457
_("# This is Git's per-user configuration file.\n"
458-
"[core]\n"
458+
"[user]\n"
459459
"# Please adapt and uncomment the following lines:\n"
460-
"# user = %s\n"
460+
"# name = %s\n"
461461
"# email = %s\n"),
462462
ident_default_name(),
463463
ident_default_email());

0 commit comments

Comments
 (0)