In the last lecture we installed Git
on our Mac computer.
In this lecture it's time to do the same thing
on our Windows machine.
The website we need to download Git,
as I mentioned Git is one hundred percent for free.
So all you have to do is,
you have to search for Git up here,
and then you should find this link here,
this git-scm.com, this is the official Git website.
Let's go to this website now.
And in here, we get some information about Git in general,
but the important part here is this,
well, screen down there,
which indicates the latest source release.
In my case, 2.32.
At the point of time where you're watching this video,
this might be a later version already.
Nevertheless, we only have to click onto
"Download for Windows" here to start the download.
It should automatically download the right version for you,
so the download should automatically start.
You can find some other Git versions
for other Windows versions down here.
But as I said,
the automatic download should work perfectly here.
It's the 64 bit version for Windows machines.
Once the download is finished
navigate into the folder where the file was downloaded to,
and double click onto this xFile, you can find in there.
And now we are here in the installer.
We can click next here to skip the general information part.
Here you can now define a destination location
where Git should be installed.
Feel free to select a different path in here,
I'll go with the default path that is,
well, automatically added.
So we'll click onto next once again.
Here you can now select the different components
that should be installed in here.
Now you can go with the default option here.
For the purpose of this course,
I recommend to unselect one box stall.
That's the Windows Explorer integration up here,
so I'll untick this one.
The reason for this is that, as you can see,
we have some Git bash
and some Git graphical user interface integration
at this stage, and in this course
we don't want to use any graphical user interface
or the Git bash.
It's this Git specific shell I mentioned already
throughout the course.
We want to dive into Git from a command line perspective
and for this on our Windows machine,
we will go for the default Windows command prompt.
Therefore these two options should be unselected here,
the rest can remain as it is.
So let's click onto next again.
Here the shortcut can also remain as the default one,
so let's again click next.
Here, we can now select the default editorial when using it.
Now this sounds a bit strange, as I said,
we will use Git from the command line perspective actually,
but we can use Git in the command line
but in a different environment,
in a different development environment.
Throughout the course we'll use visual studio code
to work with Git.
At this stage though,
I want to focus onto the installation of Git only,
therefore we'll go for the default option.
This won't install any additional tool
and well, we can just continue.
So let's keep it the way it is,
we won't use this editor though.
Therefore let's press next right here.
This option is all about the naming of branches.
We'll explore branches of course in this module.
Generally branches can be imagined as so-called folders,
which holds our actual code snapshots.
Historically the core branch decor folders, so to say,
was called master.
This convention changed to main now,
therefore feel free to decide whatever you prefer
for historical reasons.
I'll go with the default, let Git decide option.
So with the Mars to branch being the default branch name.
As I said, you can also choose the second option here
just as you prefer.
In the course though,
I refer to the master branch quite often.
So I'll go with that first let Git decide option
and press next once again.
Here we can also go with the recommended approach,
so we can use Git from the command line
and also some third party software.
Won't dive too deep into this.
As I said, we'll use Git with visual studio code
throughout this course,
and introduce this after the installation is finished.
So that's again, click next here.
This is about security and some server certificates,
here we can go with the open SSL library.
That's the default option, which is totally fine for us.
Here we can define how line and in conversions will be made.
This simply is important if we have projects,
which are, for example, committed on a Windows machine
and then accessed by Mac users, for example.
This can cause some troubles
when it comes to the line ending of text files here.
Therefore we'll also go with the default option,
which doesn't cause any problems here in most cases.
So we'll also select next right here.
This is related to the Git bash,
as we don't use the Git bash
we can just go with the default option two
and click next once again.
This is all to something more Git specific.
Fast forward, merge, or rebased.
These are, well, some more advanced Git concepts.
I won't dive into these at this stage,
therefore we'll also go with the default option here.
This option is all about credentials.
We will see in the next lectures
that we have to add our credentials,
so our name and email address to make sure that any change,
any commit we make in Git
can be addressed to a specific person.
Here we'll go with the Git credential manager
Git ships with which helps us to easier,
well, manage these credentials that we add.
So we'll go with this new option that we have up here,
so let's also click next.
For the caching we can also go with the default one,
so enable file system caching.
Experimental options here are something we won't use
throughout this course,
therefore make sure to keep these boxes unticked.
And with these, well, few options being selected correctly
we can now finally install Git
by clicking onto this option down here,
and now it takes a few seconds.
And with that, we should be ready to go.
We should have installed Git on our machine then.
Git was installed successfully.
Make sure to untick the launch Git bash option
in case it is selected.
And let's also untick the release notes option
and finish the setup.
Now to see whether Git was installed successfully
on our machine,
we will use the Windows scheme
and now enter the command prompt term up here.
You see command down there is already sufficient,
and now we can open the command prompt on Windows
by clicking up here.
This is now our command prompt,
and in this command prompt
we can now write our first Git command.
And this command is Git, so like this.
Now we add a space.
We'll dive deeper into Git commands in a few minutes,
of course, but typically if you want to interact with Git,
you always start with Git
and then the command you want to execute.
In this case, I just want to see
whether Git was installed successfully on our machine.
And for this, I simply want to check the installed version
on the computer of Git that we have.
And we can check this with Git space dash dash,
and now version.
With enter we can now see
whether the installation was successful,
and as you'll see we successfully installed Git
in the version of 2.32,
which was the version that we saw on the website,
successfully.
As I said,
if you're watching this video at a later point in time,
the version here might be higher on your machine.
And this means we successfully installed Git
on our Windows machine.
All the preparation steps are out of the way
and therefore we can now really dive into Git.