user-manual: use 'git config --global user.*' for setup
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
47adb8ac7c
commit
632cc3e6b6
@ -991,9 +991,16 @@ Developing with git
|
|||||||
Telling git your name
|
Telling git your name
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
Before creating any commits, you should introduce yourself to git. The
|
Before creating any commits, you should introduce yourself to Git.
|
||||||
easiest way to do so is to make sure the following lines appear in a
|
The easiest way to do so is to use linkgit:git-config[1]:
|
||||||
file named .gitconfig in your home directory:
|
|
||||||
|
------------------------------------------------
|
||||||
|
$ git config --global user.name 'Your Name Comes Here'
|
||||||
|
$ git config --global user.email 'you@yourdomain.example.com'
|
||||||
|
------------------------------------------------
|
||||||
|
|
||||||
|
Which will add the following to a file named `.gitconfig` in your
|
||||||
|
home directory:
|
||||||
|
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
[user]
|
[user]
|
||||||
@ -1001,8 +1008,9 @@ file named .gitconfig in your home directory:
|
|||||||
email = you@yourdomain.example.com
|
email = you@yourdomain.example.com
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
|
|
||||||
(See the "CONFIGURATION FILE" section of linkgit:git-config[1] for
|
See the "CONFIGURATION FILE" section of linkgit:git-config[1] for
|
||||||
details on the configuration file.)
|
details on the configuration file. The file is plain text, so you can
|
||||||
|
also edit it with your favorite editor.
|
||||||
|
|
||||||
|
|
||||||
[[creating-a-new-repository]]
|
[[creating-a-new-repository]]
|
||||||
|
Loading…
Reference in New Issue
Block a user