WEBVTT

00:04.320 --> 00:09.040
Before we introduce git and GitHub into the picture, make sure that you have a dedicated directory

00:09.040 --> 00:11.760
where you will store everything we built in this project.

00:12.280 --> 00:18.720
In my case, I have set up this directory in my C drive under courses and inside courses.

00:18.720 --> 00:22.760
I built another subfolder called YouTube ELT.

00:23.240 --> 00:25.480
You can create the same folder structure if you wish.

00:25.760 --> 00:31.440
Now that you have a dedicated local directory for our project setup, let's shift our focus to creating

00:31.480 --> 00:32.680
a GitHub repository.

00:34.040 --> 00:38.240
This can easily be done on GitHub dashboard which is what you see on your screen.

00:38.880 --> 00:42.000
I will leave a link to this URL in the appendix of this section.

00:42.160 --> 00:48.120
From here we click on new to create a new repository and we need to give the repository a name.

00:48.120 --> 00:51.200
I will stick with the same name as the project folder.

00:51.800 --> 00:56.680
We leave it as public and we can press the Create Repository button.

00:57.960 --> 01:01.760
Once the repository is created on GitHub, follow the steps outlined here.

01:02.160 --> 01:05.000
On your local machine and we can cover these steps.

01:05.000 --> 01:08.000
Right now the first command is an echo command.

01:08.240 --> 01:13.080
And what it does is it will create a Readme file with the repository name inside it.

01:15.320 --> 01:20.480
Next, after creating the Readme markdown file, we now need to initialize a git repository.

01:21.000 --> 01:23.560
This is done by running the git init command.

01:26.440 --> 01:28.200
The command has been done successfully.

01:28.840 --> 01:33.200
Now we also need to include the git add and git commit commands.

01:33.720 --> 01:35.960
So we just edit the readme.

01:35.960 --> 01:39.280
So we need to have also the git add readme command.

01:40.480 --> 01:42.840
And then we also need to do the git commit.

01:43.600 --> 01:50.160
Now I will likely change the commit command here to be a more meaningful commit comment.

01:50.520 --> 01:58.040
Something like added readme file with repo name in it.

01:59.080 --> 02:04.680
Now we make sure that the default branch is set domain by writing git branch minus m main.

02:04.680 --> 02:10.200
And an important step is that of linking what we are doing locally to the GitHub repository we just

02:10.200 --> 02:10.800
created.

02:11.040 --> 02:13.200
This is done by running the following command.

02:15.000 --> 02:20.200
Finally, we push the changes with it locally onto GitHub so we can execute the git push command.

02:22.920 --> 02:25.680
Okay, the git push command was executed successfully.

02:26.120 --> 02:31.360
And now we have to go back to the GitHub repository and press refresh.

02:33.520 --> 02:37.640
We will see that the Readme file we just added has been also committed.

02:37.640 --> 02:39.400
And push the GitHub repository.

02:40.800 --> 02:42.440
And that's it for this lecture.

02:42.480 --> 02:45.400
Only a few more lectures left until we start coding.

02:45.920 --> 02:50.080
I will see you in the next lecture where we will discuss Python virtual environments.
