Skip to content

Commit 8bb45b2

Browse files
kraaigitster
authored andcommitted
commit: quote the user name in the example
If the user runs git config --global user.name Your Name as suggested, user.name will be set to "Your". With this patch, the suggested command will be git config --global user.name "Your Name" which will set user.name to "Your Name" and hopefully help users avoid the former mistake. Signed-off-by: Matt Kraai <kraai@ftbfs.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d951615 commit 8bb45b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static const char implicit_ident_advice[] =
4141
"on your username and hostname. Please check that they are accurate.\n"
4242
"You can suppress this message by setting them explicitly:\n"
4343
"\n"
44-
" git config --global user.name Your Name\n"
44+
" git config --global user.name \"Your Name\"\n"
4545
" git config --global user.email you@example.com\n"
4646
"\n"
4747
"If the identity used for this commit is wrong, you can fix it with:\n"

0 commit comments

Comments
 (0)