Skip to content

Commit 632cc3e

Browse files
wkinggitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 47adb8a commit 632cc3e

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

Documentation/user-manual.txt

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -991,18 +991,26 @@ Developing with git
991991
Telling git your name
992992
---------------------
993993

994-
Before creating any commits, you should introduce yourself to git. The
995-
easiest way to do so is to make sure the following lines appear in a
996-
file named .gitconfig in your home directory:
994+
Before creating any commits, you should introduce yourself to Git.
995+
The easiest way to do so is to use linkgit:git-config[1]:
996+
997+
------------------------------------------------
998+
$ git config --global user.name 'Your Name Comes Here'
999+
$ git config --global user.email '[email protected]'
1000+
------------------------------------------------
1001+
1002+
Which will add the following to a file named `.gitconfig` in your
1003+
home directory:
9971004

9981005
------------------------------------------------
9991006
[user]
10001007
name = Your Name Comes Here
10011008
10021009
------------------------------------------------
10031010

1004-
(See the "CONFIGURATION FILE" section of linkgit:git-config[1] for
1005-
details on the configuration file.)
1011+
See the "CONFIGURATION FILE" section of linkgit:git-config[1] for
1012+
details on the configuration file. The file is plain text, so you can
1013+
also edit it with your favorite editor.
10061014

10071015

10081016
[[creating-a-new-repository]]

0 commit comments

Comments
 (0)