Hello and welcome to this video.
In this video, I'm going to be adding falls to a remote kit repository.
In the previous video, I created a local guide repository, so I'm going to move a copy of that to
a remote repository on GitHub.
To begin, I need to create a new repository on GitHub so you can either use a link here that says create
a repository, or you can click on the dropdown and select new repository.
So I'm going to click on this one.
That's the new repository.
The user name you used when you created an account on GitHub will be displayed here, and then you have
to give the repository a name.
I want to call my repository the same name as the folder I have created on my desktop, so I'm just
going to paste the name in here.
So this is the name.
I've got a green tick, which means that name is available to use.
You can add a description if you wish to do so.
That is optional and then your repository can be public or private.
I'm going to leave it public for now, and then you can initialize a repository.
I've already initialize a local repository, so I don't need to do that.
You can either read me file if you want.
You can always do this later.
You can also add a take no file.
You can also do that later.
So I'm just going to click on the Create repository button and that will create my repository to my
repository has been created.
You can see the name of my repository displayed here.
So once you've created a new repository on GitHub, the next step is to push my code that I have in
my local repository on my computer.
I want to push that into this new repository.
If you scroll down the page here, there are some instructions on how to do that.
So here I have already initialized the key repository, so I don't need to do that.
I don't want to add a read me file.
Now I've already committed my local one.
I can add that what this would do, it would change the name of the kit branch.
Apparently, it is called master.
I can change that so that it's main, so I'm going to copy that line of code into my command prompt.
I've pasted that line of code into my command prompt.
I'm going to press, enter and execute it.
The next thing is that I want to add the files from my local git repository.
I want to push a copy of that to this remote repository of creators or copy the line of code and then
put that in my command prompt.
So I've copied that line of code here, and then I'm just going to press enter to execute it so that
code has been executed, the command to actually push the code.
Is this one here that says, get, push, dash, you origin main.
So we are pushing what we have in our local repository to the repository on GitHub.
So this is a command that those that have added this command here to push the code to my GitHub repository,
so I press enter.
You are prompted for your user name for GitHub.
So enter your username for your GitHub account.
Have entered my username for my GitHub account.
Her press enter is asking for my password.
After entering your personal access token, the code on your computer will be pushed to your local repository
on GitHub, so you can see here that is the name of the repository where your code is being pushed to.
So if we take a look at our repository on GitHub just by clicking on the name here, you will see that
all the code from my local kit repository has been pushed across to the remote repository.
So any time you make changes to any of the files here, you have to add them again to the local repository.
You then need to commit them and then you need to use the command gate, push that you to push them
back to the remote repository.
So any changes you make locally, you always have to push it to the remote repository on GitHub.
So that's it for this video In this video, we pushed out the code from our local GitHub repository
to our remote repository on GitHub.
Thanks for watching.
Bye for now.