Let's define a few global settings.
The first setting is to define your name, and the second setting is to define your email.
To do this, you can run the following commands.
Git config dash dash global user dash name and define your name in double quotes.
I'll define it as Git Labs nine which I've created for the demonstration purposes.
The next command is git config dash dash global user dash email and your email in double quotes.
In my case it will be Git Labs nine at gmail.com.
Another useful global setting which you can run is gate config dash dash, global color dash UI and
auto.
In double quotes.
This setting will enable git to color code the output of git commands on the terminal.
The global setting allows the settings to be applied to any other repository that you work on locally.
Now, when it is done, we can check all the configuration settings for your repository by running the
following command git config dash dash list.
Also, if you want to edit any of your configuration settings, you can do so by editing the dot git
config file which is located in your home directory.
Let's open up it quickly.
We can run the following command Nano or your preferred editor, for example VM or notepad if you are
running windows.
But in my case I'll run nano tilt slash dot git config tilt means that this file is located in my home
directory.
In case of windows, the path could be c drive colon slash user slash your username slash dot git config.
So I'll run the command and it'll open the file itself and you can add the configuration settings to
this file after you are done.
You have to save this file and close the editor.
Now we are ready to create our first git project and run git commands.