Add examples to git-config

This commit is contained in:
Marcel Ribeiro-Dantas 2022-07-17 16:55:07 +02:00 committed by Marcel Ribeiro-Dantas
parent 250980742c
commit dd8d8fc95a
No known key found for this signature in database
GPG Key ID: BA6A9BC3398907E0

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` ). or global configurations ( global config file is `~/.gitconfig` ).
```bash ```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.email "MyEmail@Zoho.com"
$ git config --global user.name "My Name" $ 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) [Learn More About git config.](http://git-scm.com/docs/git-config)