Welcome back, everyone.
I hope that all of you have created or installed or get
successfully in your device.
And if you face any problem
while installing it, you can just simply ask me in the comments section.
All right.
So let's start this video.
Let me create a simple text file and I will be making
this folder as a repository.
So let me write in something.
Let me just simply write in my first name.
And now I'm going to go to the source control panel.
And from here, the first thing that I'm going to do
is I'm going to initialize this as a repository.
So just click on this initialize repository
and this will show me the changes.
This is the first file that I have to add.
Now, looking to open up my terminal as well.
Now on a command line
I need to use a command like get add
and then a stored order dot to add these files to that out.
Add this file to the staging area
and then the commit message to get to commit the changes.
But what I can do with the various code is I can use its
graphical user interface and make the changes in a go.
Right?
So I can just simply click on this plus icon to move it to the staging area.
Now, inside the staging area, I can simply write in a message like added
symbol fine, or you can write it in present
or past tense, whichever you prefer.
Now just simply click on Commit and this will commit your changes to the file.
Right.
So now if I just make some changes to this file, like I write my last name as well,
and if I hit save, then you can see
I can see the changes and that's my is showing me
the file that the symbol file has been modified.
Now, if I click on this a symbol file lock BSD,
then this will open up a working tree from.
And here it will
show me the changes that I have committed or that I have done right.
So here you can see in this first line there are changes and it is reflecting
the changes or highlighting the changes in the green color on the right hand side.
So let me just get rid of the terminal here.
So this is very helpful.
And I can also reward the changes.
I can simply click on this discard changes option and it will discard.
First of all, it will ask me if I want to discard the changes
and I will discard all the changes and a one go.
Now, let me just close this and let me just simply make the changes, save
this file, add those to the staging area and I'm going to commit.
So in order to committed, you can just simply click here
and then this will prompt you for your message.
Make change and then just hit enter.
Right.
So this is the very basic thing that you can do with
get inside your voice call.
Now, inside here you can also see,
does my cell brand the current run that I am walking with?
And if you are not able to see it, then
you need to go to view and know here in the appearance.
Make sure you have enable the status bar option.
Right. So.
Right.
So now if you click on the master branch, it will show me all the branches.
Currently I have only one branch.
Now, if I also want to create a new branch so I can click on this option
and let me see, I can create a new branch, as we call it
as new branch.
And it and this will create
a new branch for me and I will be on the new branch.
So inside this new branch, I have this simple text file.
Now I can make some changes like add exclamation mark and I can go to the
source control panel or the shortcut
to go to the source control panel is our control shift.
G Right.
So similarly, I can make the changes to this branch or let me do one thing,
let me add a new file and this branch to this file will be new file or p d
And if I just write in something here and if I stage it or just commit this.
So here inside, let me add both of these files
also to include all the files to the staging area.
And once you can click on this plus icon,
which is right next to the changes option.
So this is the plus option or the icon,
which is just on the line of the changes option.
So if I click on here, then all the changes will be
on the staged area.
Now I can give my command message like added new file and I can commit this.
Now if I switch to my master branch.
So if I click here and if I switch to my master branch and if I go to files,
then you can only see I only have the same block.
The active file.
Now from here I can also merge the branches.
But you know what we are going to see in the next lecture.
So if you are following me on this course then you know that we have developed
a ping pong project in the web development section
and in the next lecture I will be pushing that same project
inside GitHub and I will show you a lot more things about it.
And we scored shortcuts that you can do.
So see you in the next lecture.