File tree 1 file changed +10
-8
lines changed
text/06_Setup_and_Initialization
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
### Git Config ###
2
2
3
- The first thing you're going to want to do is to setup your name and
4
- email address for Git to use to sign your commits.
3
+ The first thing you're going to want to do is set up your name and email
4
+ address for Git to use to sign your commits.
5
5
6
6
$ git config --global user.name "Scott Chacon"
7
7
$ git config --global user.email "schacon@gmail.com"
8
8
9
- That will setup a file in your home directory that stores your name and email
10
- in any Git project where it's not overridden . By default that file is * ~ /.gitconfig*
11
- and the contents will then look like this:
9
+ That will set up a file in your home directory which may be used by any of
10
+ your projects . By default that file is * ~ /.gitconfig* and the contents will
11
+ look like this:
12
12
13
13
[user]
14
14
name = Scott Chacon
15
15
email = schacon@gmail.com
16
16
17
- If you want to override those values for a specific project (change to using a
18
- work email address, for example), you can run the * git config* command without
19
- the * --global* option while in that project.
17
+ If you want to override those values for a specific project (to use a work
18
+ email address, for example), you can run the * git config* command without the
19
+ * --global* option while in that project. This will add a [ user] section like
20
+ the one shown above to the * .git/config* file in your project's root
21
+ directory.
You can’t perform that action at this time.
0 commit comments