Skip to content

Commit

Permalink
user-manual: use 'git config --global user.*' for setup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
W. Trevor King authored and Junio C Hamano committed Feb 18, 2013
1 parent 47adb8a commit 632cc3e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Documentation/user-manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -991,18 +991,26 @@ 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 to a file named `.gitconfig` in your
home directory:

------------------------------------------------
[user]
name = Your Name Comes Here
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]]
Expand Down

0 comments on commit 632cc3e

Please sign in to comment.