Skip to content

Commit 06dd8a9

Browse files
authored
moving everything around
1 parent 600773c commit 06dd8a9

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

book/05_local_git_configs.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,28 @@ $ git config --global --list
4747

4848
### Configuring Your User Name and Email
4949

50-
The directions below are using the `--global` scope. This is fine if you are on a personal user account. However, if you are borrowing a computer without a private, personal account, skip the `--global` flag so that the settings will only be stored to our assignment repository. When you work in another repository on this same computer, you will need to set these configurations again.
51-
5250
Git uses the config settings for your user name and email address to generate a unique fingerprint for each of the commits you create. You can't create commits without these settings:
5351

5452
```sh
5553
$ git config --global user.name "First Last"
5654
$ git config --global user.email "you@email.com"
5755
```
5856

59-
> Your name and email address will automatically be stored in the commits you make with Git. If you would like your email to remain private, GitHub allows you to generate a no-reply email address for your account. Click the **Keep my email address private** in the [Settings > Emails section](https://github.com/settings/emails). After enabling this feature, you just need to enter the automatically generated `ID+username@users.noreply.github.com` when configuring your email.
57+
#### Git Config and Your Privacy
58+
59+
The instructions for this exercise use the `--global` flag when identifying your `user.name` and `user.email` configuration settings. If you are currently using a computer without a private, personal account, don't apply the `--global` flag so the settings will only be stored in our assignment repository. If you work in another repository on this same computer, you will need to set these configuration options again.
6060

6161
> For example:
62-
```sh
63-
git config --global user.email 18249274+githubteacher@users.noreply.github.com
64-
```
62+
> ```sh
63+
> git config user.email "you@email.com"
64+
>```
65+
66+
Your name and email address will automatically be stored in the commits you make with Git. If you would like your email to remain private, GitHub allows you to generate a no-reply email address for your account. Click the **Keep my email address private** in the [Settings > Emails section](https://github.com/settings/emails). After enabling this feature, you just need to enter the automatically generated `ID+username@users.noreply.github.com` when configuring your email.
67+
68+
> For example:
69+
> ```sh
70+
> git config --global user.email 18249274+githubteacher@users.noreply.github.com
71+
> ```
6572
6673
### Configuring autocrlf
6774

0 commit comments

Comments
 (0)