Skip to content

Commit 4deedc1

Browse files
author
Jamie Strusz
authored
Merge pull request #328 from githubtraining/allthedoll/local-git-configs
2 parents d5f9eea + bb1bdd1 commit 4deedc1

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

docs/05_local_git_configs.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ First, let's confirm your [Git Installation](https://git-scm.com/downloads):
88

99
```sh
1010
git --version
11-
git version 2.11.0
1211
```
1312

14-
If you do not see a git version listed or this command returns an error, you may need to install Git.
13+
If Git is installed, it will return your version: `git version 2.33.1`.
14+
15+
If you do not see a Git version listed or this command returns an error, you may need to install Git.
1516

1617
> To get the latest version of Git, visit [www.git-scm.com](https://www.git-scm.com).
1718
@@ -54,10 +55,17 @@ git config --global --list
5455
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:
5556

5657
```sh
57-
git config --global user.name "First Last"
58+
git config --global user.name "First-name Surname"
5859
git config --global user.email "you@email.com"
5960
```
6061

62+
Example:
63+
64+
```sh
65+
git config --global user.name "Mona Octocat"
66+
git config --global user.email "mona@github.com"
67+
```
68+
6169
#### Git Config and Your Privacy
6270

6371
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. This way, 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.
@@ -86,6 +94,6 @@ git config --global core.autocrlf true
8694
git config --global core.autocrlf input
8795
```
8896
89-
Different systems handle line endings and line breaks differently. If you open a file created on another system and do not have this config option set, git will think you made changes to the file based on the way your system handles this type of file.
97+
Different systems handle line endings and line breaks differently. If you open a file created on another system and do not have this config option set, Git will think you made changes to the file based on the way your system handles this type of file.
9098
9199
> Memory Tip: `autocrlf` stands for auto carriage return line feed.

0 commit comments

Comments
 (0)