All right, everyone, welcome back.
So the next thing that we are going to do is we are going to push a project
that we have downloaded on the Web development section onto GitHub.
Right.
So the first thing that we need to do is
we need to initialize this folder as a great repository.
So go to the source control panel and click on this initialize repository.
Now we need to add all the files to the staging area.
So just click on this class icon and it will add all the files
to the staging area.
Next, we need to add a commit message.
So I will edit like added files.
Now, once this is done, we need to add our remote.
That basically remote is the location where I will be pushing this files.
Right.
So in order to get the remote,
you need to open up your GitHub account and create a repository there.
After creating a repository, you need to just copy the link of that repository.
You can get it from here or you can simply copy it from here.
After that, go to your voice code and here just click on the street art icons
and here you will find the remote option and we are going to add a remote.
So just copy paste the link here.
And after that we are going to go with the default
or the standard name of our remote that is for region
and you can name it anything you like after that header.
And our remote has been setup successfully.
Now we can also see our remote so we can open up our terminal
and we can type in, get the remote and bash re.
This will show the location where I will be pushing and fetching our files from.
Right.
So let me close that and let me push all the files onto this
onto this repository.
So now if I just refresh this repository, you can see that nothing is present here.
But now let's post this.
So go to here and push and it will ask.
Basically, it will be going to create a master branch, this press.
Okay.
And wait for some time to let's upload and now let me just go to my chrome
and let's refresh this page and you can see all the files
have been updated or added in this repository.
Now, similarly, you can clone a project like this,
so you can open up your command palette and type and get a clone.
And after that, in order to clone,
you need to enter the repository the link of the repository
which you want to clone, and you need to also specify the location.
But I am not going to do this in this video.
That's quite easy.
Now just head the escape key if you don't want to do any action right.
All right.
So now let's do one thing.
Let's open up our script ideas file.
And if you remember, we have set the default warning score to be fine.
Now, let's make it one in our files here.
And you can see in the source control panel, it can show me the changes.
So if I click on this file, I can see this has changed.
Now, let me just add this to the staging area and let's commit.
So changed
winning score.
Now, once this is done, what I will be showing you
is let's suppose some other user
who is working or some other contributor who is working on the same project
might have changed this winning score value from one to something else.
So let's replicate this.
Let's go to our script for this file and you can see
currently it is five, so it is not updated here
on The thing that we need to do to update is basically we need to post this code.
So if I want to push it so I can just simply go to again
here and I can push the code and after that,
after the push operation is complete, I can see I can just simply refresh
this and I can see the changes have been reflected, right?
So now what I will be doing is I will be changing some data
as a third party users in this file, so I can just simply work on this edit
file option.
And from here I will make this winning score as five.
And after that go to the bottom of this page
and let me write a commit message.
Now, we have
made our changes to the file on the remote.
So now what I will be doing is I will be making the same change here,
but instead of one, I will be keeping it two here.
So on our local machine, this is going to be two
and on our remote this is five, right?
So what I will be doing now is I will just simply
make the changes and add to the commit area
and just committed.
Now I need to pull out goal from my remote.
So let's see what happens if I just pull the code now
so you can see the two values are different here
and it will be going to show me a much conflict
and I will show you how to handle most conflicts inside of school.
So let's click on this trailer option and let's run a pull request.
And you can see those lines are highlighted here.
So the green area, is it affecting me, the current change that I have done
on my local machine and this blue area is reflecting the change
which is already present, all which is going to be incoming.
So there are a couple of options that I can do.
I can either accept the current change where the winning school value will be.
Two I can either accept the incoming change this is the winning school
five incoming change, or I can accept the award or I can simply compare.
It is no need to compare here, so let me just accept the incoming change
and this is very easy to handle.
Now you can see instead of the staging area,
we can see the mode changes here.
So I will be adding or I will be merging the changes
by clicking on this option and now my files on the stage area.
So I will set the W.
S as five and just hitting the commit option.
So this is how to handle the mileage conflict inside of school.
And I think that at this point of time all of you are clear with
how to use get do UI for your school. Right?
So in the next lecture we will see some popular extension for get and get help.
So stay tuned for that.