- [Instructor] All the files
for this course are freely available
at GitHub repo at this URL.
Please make sure that Git Client is installed
on your machine and you have some basic knowledge about
what Git and GitHub are and how they work.
If you're completely new to Git, please search the library
for the topic.
I'd recommend to take the course Learning Git
and GitHub by Ray Villalobos.
As Git and GitHub are so commonly used,
I promise that this is a good investment into your career.
Now you can just follow along with me.
The repository is built so that there are branches for each
of the videos where code was changed in this course.
You can use the branch pop up right here on the left
to switch between the versions.
If you see a B at the end of the branch name,
this means this is how the code looked
at the beginning of the video.
And if you see an E, this means that this is
how the code looked at the end of the video.
Also, there is a branch start,
so this is the starting point for this course
and then there is also branch main.
This is the state at the end of the course,
and I also just created another branch
that is called final, which is right now pointing to main,
so final and main are basically the same.
So to clone this report, I click on this green Code button
and then I select the SSH tab up there,
so I'm cloning the SSH
and then I click on this clipboard icon.
And now we can head over to the desktop
and there I create a new folder node-authentication.
And of course you can put it anywhere on your system,
depending on your preferences.
And then I open the terminal.
This might look different if you're on Windows,
but from it's principal it should be the same.
I'm now changing into this directory by doing CD.
And I can now simply drag this directory into the terminal
to copy that over.
And I'm now in node-authentication, that's important.
So now I'm running git clone --bare
and now I'm pasting in the GitHub repo URL.
And then I add a blank and .git, that's important.
So, .git has to be here in the end.
Now, it's cloning the spare repository.
As you see this all looks a little bit complicated.
This is just because I really want to clone
and really download all the branches.
Otherwise, this command looks way more simple,
But in this case, we now have
to add git config --bool core.bare false.
So nothing happens there, that's normal,
but then I run git reset --hard,
and now we really have cloned everything.
and to verify that I can now enter git branch
and you see that we now have all the branches.
And we are now on branch main, which would mean
that we are on the branch
that contains already the end of the course,
so I recommend you to do a git checkout start,
so now we are on the start branch.
And now I'm also going to create a new branch from start
that you can then use for your development.
And for that, I do git checkout -b
and let's call it development.
And now we are on the branch development,
which represents the starting point of this course.
And you can now get started from there.
So, if you later then open this directory envicious
to the code, you will be already on the development branch.