Skip to content

Commit 34b96a4

Browse files
committed
add note about using --global only if its on own machine
1 parent 4900320 commit 34b96a4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

book/05_local_git_configs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ These are the repository level configurations. They only apply to the specific r
3030

3131
> The default value for git config is `--local`.
3232
33+
3334
### Viewing Your Configurations
3435

3536
If you would like to see which config settings have been added automatically, you can type `git config --list`. This will automatically read from each of the three config files and list the setting they contain.
@@ -46,6 +47,8 @@ $ git config --global --list
4647

4748
### Configuring Your User Name and Email
4849

50+
The directions below are using `--global`. This is fine if you are on your own machine. However, if you are using a shared computer, omit the `--global` flag so that the settings will only be stored to the repository. When you work in another repository on this same computer, you will need to set these configurations again.
51+
4952
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:
5053

5154
```sh

0 commit comments

Comments
 (0)