# Git comes with a tool called git config that lets you get and set configuration variables that control all aspects of how Git looks and operates. These variables can be stored in three different places:
1. System level - for all users
/etc/gitconfig file: Contains values applied to every user on the system and all their repositories.
If you pass the option --system to git config, it reads and writes from this file specifically
2. User level
~/.gitconfig or ~/.config/git/config file: Values specific personally to you, the user.
You can make Git read and write to this file specifically by passing the --global option
3. Repository level - for a particular repository
config file in the Git directory (that is, .git/config) of whatever repository you’re currently
using: Specific to that single repository.
# Each level overrides values in the previous level, so values in .git/config trump those in /etc/gitconfig.
# The first thing you should do when you install Git is to set your user name and email address.
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
# Checking Your Settings
$ git config --list