Re: [PATCH v2 09/15] user-manual: Use 'git config --global user.*' for setup
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 10, 2013, 22:12 UTC
- Message-ID
- <7vip5zstsa.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <b363f5b410098302a02af2d79b5b68ee79210be2.1360508415.git.wking@tremily.us>
"W. Trevor King" <wking@tremily.us> writes:
Show 33 quoted lines
> From: "W. Trevor King" <wking@tremily.us> > > A simple command line call is easier than spawning an editor, > especially for folks new to ideas like the "command line" and "text > editors". This is also the approach suggested by 'git commit' if you > try and commit without having configured user.name or user.email. > > Signed-off-by: W. Trevor King <wking@tremily.us> > --- > Documentation/user-manual.txt | 18 +++++++++++++----- > 1 file changed, 13 insertions(+), 5 deletions(-) > > diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt > index 8bf37b3..e2e0c86 100644 > --- a/Documentation/user-manual.txt > +++ b/Documentation/user-manual.txt > @@ -991,9 +991,16 @@ Developing with Git > Telling Git your name > --------------------- > > -Before creating any commits, you should introduce yourself to Git. The > -easiest way to do so is to make sure the following lines appear in a > -file named `.gitconfig` in your home directory: > +Before creating any commits, you should introduce yourself to Git. > +The easiest way to do so is to use linkgit:git-config[1]: > + > +------------------------------------------------ > +$ git config --global user.name 'Your Name Comes Here' > +$ git config --global user.email 'you@yourdomain.example.com' > +------------------------------------------------ > + > +Which will add the following stanza to a file named `.gitconfig` in > +your home directory:
Looks good, even though I do not think we would want/need to confuse the readers with an unfamiliar word "stanza".
Show 12 quoted lines
> @@ -1001,8 +1008,9 @@ file named `.gitconfig` in your home directory: > email = you@yourdomain.example.com > ------------------------------------------------ > > -(See the "CONFIGURATION FILE" section of linkgit:git-config[1] for > -details on the configuration file.) > +See the "CONFIGURATION FILE" section of linkgit:git-config[1] for > +details on the configuration file. The file is plain text, so you can > +also edit it with your favorite editor. > > > [[creating-a-new-repository]]