Before we introduce git and GitHub into the picture, make sure that you have a dedicated directory
where you will store everything we built in this project.
In my case, I have set up this directory in my C drive under courses and inside courses.
I built another subfolder called YouTube ELT.
You can create the same folder structure if you wish.
Now that you have a dedicated local directory for our project setup, let's shift our focus to creating
a GitHub repository.
This can easily be done on GitHub dashboard which is what you see on your screen.
I will leave a link to this URL in the appendix of this section.
From here we click on new to create a new repository and we need to give the repository a name.
I will stick with the same name as the project folder.
We leave it as public and we can press the Create Repository button.
Once the repository is created on GitHub, follow the steps outlined here.
On your local machine and we can cover these steps.
Right now the first command is an echo command.
And what it does is it will create a Readme file with the repository name inside it.
Next, after creating the Readme markdown file, we now need to initialize a git repository.
This is done by running the git init command.
The command has been done successfully.
Now we also need to include the git add and git commit commands.
So we just edit the readme.
So we need to have also the git add readme command.
And then we also need to do the git commit.
Now I will likely change the commit command here to be a more meaningful commit comment.
Something like added readme file with repo name in it.
Now we make sure that the default branch is set domain by writing git branch minus m main.
And an important step is that of linking what we are doing locally to the GitHub repository we just
created.
This is done by running the following command.
Finally, we push the changes with it locally onto GitHub so we can execute the git push command.
Okay, the git push command was executed successfully.
And now we have to go back to the GitHub repository and press refresh.
We will see that the Readme file we just added has been also committed.
And push the GitHub repository.
And that's it for this lecture.
Only a few more lectures left until we start coding.
I will see you in the next lecture where we will discuss Python virtual environments.