Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor edits to 'Setup and Initialization' section
- Loading branch information
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
### Git Config ### | ||
|
||
The first thing you're going to want to do is to setup your name and | ||
email address for Git to use to sign your commits. | ||
The first thing you're going to want to do is set up your name and email | ||
address for Git to use to sign your commits. | ||
|
||
$ git config --global user.name "Scott Chacon" | ||
$ git config --global user.email "schacon@gmail.com" | ||
|
||
That will setup a file in your home directory that stores your name and email | ||
in any Git project where it's not overridden. By default that file is *~/.gitconfig* | ||
and the contents will then look like this: | ||
That will set up a file in your home directory which may be used by any of | ||
your projects. By default that file is *~/.gitconfig* and the contents will | ||
look like this: | ||
|
||
[user] | ||
name = Scott Chacon | ||
email = schacon@gmail.com | ||
If you want to override those values for a specific project (change to using a | ||
work email address, for example), you can run the *git config* command without | ||
the *--global* option while in that project. | ||
If you want to override those values for a specific project (to use a work | ||
email address, for example), you can run the *git config* command without the | ||
*--global* option while in that project. This will add a [user] section like | ||
the one shown above to the *.git/config* file in your project's root | ||
directory. |