WEBVTT

00:06.380 --> 00:08.830
Let's define a few global settings.

00:08.840 --> 00:15.020
The first setting is to define your name, and the second setting is to define your email.

00:15.050 --> 00:18.470
To do this, you can run the following commands.

00:18.500 --> 00:27.830
Git config dash dash global user dash name and define your name in double quotes.

00:27.830 --> 00:34.490
I'll define it as Git Labs nine which I've created for the demonstration purposes.

00:34.490 --> 00:45.190
The next command is git config dash dash global user dash email and your email in double quotes.

00:45.200 --> 00:50.420
In my case it will be Git Labs nine at gmail.com.

00:50.420 --> 01:01.190
Another useful global setting which you can run is gate config dash dash, global color dash UI and

01:01.190 --> 01:02.000
auto.

01:02.000 --> 01:03.500
In double quotes.

01:03.500 --> 01:11.510
This setting will enable git to color code the output of git commands on the terminal.

01:11.510 --> 01:21.520
The global setting allows the settings to be applied to any other repository that you work on locally.

01:21.530 --> 01:28.640
Now, when it is done, we can check all the configuration settings for your repository by running the

01:28.640 --> 01:32.990
following command git config dash dash list.

01:32.990 --> 01:41.570
Also, if you want to edit any of your configuration settings, you can do so by editing the dot git

01:41.570 --> 01:46.440
config file which is located in your home directory.

01:46.460 --> 01:48.410
Let's open up it quickly.

01:48.410 --> 01:57.500
We can run the following command Nano or your preferred editor, for example VM or notepad if you are

01:57.500 --> 01:58.850
running windows.

01:58.850 --> 02:09.140
But in my case I'll run nano tilt slash dot git config tilt means that this file is located in my home

02:09.140 --> 02:10.040
directory.

02:10.040 --> 02:20.210
In case of windows, the path could be c drive colon slash user slash your username slash dot git config.

02:20.210 --> 02:29.210
So I'll run the command and it'll open the file itself and you can add the configuration settings to

02:29.210 --> 02:31.490
this file after you are done.

02:31.490 --> 02:35.920
You have to save this file and close the editor.

02:35.930 --> 02:41.810
Now we are ready to create our first git project and run git commands.
