Merge pull request #4453 from mribeirodantas/improve-git-en

[git/en] add code example to git-config
This commit is contained in:
Marcel Ribeiro Dantas, Ph.D 2022-07-17 16:56:01 +02:00 committed by GitHub
commit 627387d8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,9 +124,12 @@ To configure settings. Whether it be for the repository, the system itself,
or global configurations ( global config file is `~/.gitconfig` ).
```bash
# Print & Set Some Basic Config Variables (Global)
# Set & Print Some Basic Config Variables (Global)
$ git config --global user.email "MyEmail@Zoho.com"
$ git config --global user.name "My Name"
$ git config --global user.email
$ git config --global user.name
```
[Learn More About git config.](http://git-scm.com/docs/git-config)