1
00:00:02,360 --> 00:00:04,600
In the last lecture we installed Git

2
00:00:04,600 --> 00:00:06,500
on our Mac computer.

3
00:00:06,500 --> 00:00:09,100
In this lecture it's time to do the same thing

4
00:00:09,100 --> 00:00:11,340
on our Windows machine.

5
00:00:11,340 --> 00:00:14,630
The website we need to download Git,

6
00:00:14,630 --> 00:00:18,290
as I mentioned Git is one hundred percent for free.

7
00:00:18,290 --> 00:00:19,850
So all you have to do is,

8
00:00:19,850 --> 00:00:22,440
you have to search for Git up here,

9
00:00:22,440 --> 00:00:24,710
and then you should find this link here,

10
00:00:24,710 --> 00:00:29,710
this git-scm.com, this is the official Git website.

11
00:00:31,550 --> 00:00:33,463
Let's go to this website now.

12
00:00:34,830 --> 00:00:38,830
And in here, we get some information about Git in general,

13
00:00:38,830 --> 00:00:41,760
but the important part here is this,

14
00:00:41,760 --> 00:00:43,310
well, screen down there,

15
00:00:43,310 --> 00:00:46,020
which indicates the latest source release.

16
00:00:46,020 --> 00:00:48,690
In my case, 2.32.

17
00:00:48,690 --> 00:00:51,620
At the point of time where you're watching this video,

18
00:00:51,620 --> 00:00:54,443
this might be a later version already.

19
00:00:55,490 --> 00:00:58,157
Nevertheless, we only have to click onto

20
00:00:58,157 --> 00:01:01,283
"Download for Windows" here to start the download.

21
00:01:02,230 --> 00:01:05,660
It should automatically download the right version for you,

22
00:01:05,660 --> 00:01:08,020
so the download should automatically start.

23
00:01:08,020 --> 00:01:10,700
You can find some other Git versions

24
00:01:10,700 --> 00:01:13,240
for other Windows versions down here.

25
00:01:13,240 --> 00:01:14,370
But as I said,

26
00:01:14,370 --> 00:01:17,620
the automatic download should work perfectly here.

27
00:01:17,620 --> 00:01:21,213
It's the 64 bit version for Windows machines.

28
00:01:22,230 --> 00:01:23,820
Once the download is finished

29
00:01:23,820 --> 00:01:27,450
navigate into the folder where the file was downloaded to,

30
00:01:27,450 --> 00:01:31,963
and double click onto this xFile, you can find in there.

31
00:01:34,010 --> 00:01:37,000
And now we are here in the installer.

32
00:01:37,000 --> 00:01:41,890
We can click next here to skip the general information part.

33
00:01:41,890 --> 00:01:45,760
Here you can now define a destination location

34
00:01:45,760 --> 00:01:47,880
where Git should be installed.

35
00:01:47,880 --> 00:01:51,160
Feel free to select a different path in here,

36
00:01:51,160 --> 00:01:54,030
I'll go with the default path that is,

37
00:01:54,030 --> 00:01:55,500
well, automatically added.

38
00:01:55,500 --> 00:01:58,203
So we'll click onto next once again.

39
00:01:59,250 --> 00:02:02,910
Here you can now select the different components

40
00:02:02,910 --> 00:02:04,753
that should be installed in here.

41
00:02:05,640 --> 00:02:09,460
Now you can go with the default option here.

42
00:02:09,460 --> 00:02:11,540
For the purpose of this course,

43
00:02:11,540 --> 00:02:14,930
I recommend to unselect one box stall.

44
00:02:14,930 --> 00:02:18,220
That's the Windows Explorer integration up here,

45
00:02:18,220 --> 00:02:20,340
so I'll untick this one.

46
00:02:20,340 --> 00:02:22,910
The reason for this is that, as you can see,

47
00:02:22,910 --> 00:02:24,400
we have some Git bash

48
00:02:24,400 --> 00:02:27,930
and some Git graphical user interface integration

49
00:02:27,930 --> 00:02:30,390
at this stage, and in this course

50
00:02:30,390 --> 00:02:34,400
we don't want to use any graphical user interface

51
00:02:34,400 --> 00:02:35,890
or the Git bash.

52
00:02:35,890 --> 00:02:39,640
It's this Git specific shell I mentioned already

53
00:02:39,640 --> 00:02:41,160
throughout the course.

54
00:02:41,160 --> 00:02:46,160
We want to dive into Git from a command line perspective

55
00:02:46,430 --> 00:02:48,710
and for this on our Windows machine,

56
00:02:48,710 --> 00:02:51,830
we will go for the default Windows command prompt.

57
00:02:51,830 --> 00:02:55,710
Therefore these two options should be unselected here,

58
00:02:55,710 --> 00:02:59,030
the rest can remain as it is.

59
00:02:59,030 --> 00:03:01,183
So let's click onto next again.

60
00:03:02,430 --> 00:03:05,940
Here the shortcut can also remain as the default one,

61
00:03:05,940 --> 00:03:07,593
so let's again click next.

62
00:03:09,100 --> 00:03:13,800
Here, we can now select the default editorial when using it.

63
00:03:13,800 --> 00:03:16,210
Now this sounds a bit strange, as I said,

64
00:03:16,210 --> 00:03:20,420
we will use Git from the command line perspective actually,

65
00:03:20,420 --> 00:03:23,600
but we can use Git in the command line

66
00:03:23,600 --> 00:03:25,730
but in a different environment,

67
00:03:25,730 --> 00:03:28,700
in a different development environment.

68
00:03:28,700 --> 00:03:31,730
Throughout the course we'll use visual studio code

69
00:03:31,730 --> 00:03:33,170
to work with Git.

70
00:03:33,170 --> 00:03:34,200
At this stage though,

71
00:03:34,200 --> 00:03:37,520
I want to focus onto the installation of Git only,

72
00:03:37,520 --> 00:03:40,080
therefore we'll go for the default option.

73
00:03:40,080 --> 00:03:42,820
This won't install any additional tool

74
00:03:42,820 --> 00:03:44,720
and well, we can just continue.

75
00:03:44,720 --> 00:03:46,600
So let's keep it the way it is,

76
00:03:46,600 --> 00:03:49,670
we won't use this editor though.

77
00:03:49,670 --> 00:03:52,053
Therefore let's press next right here.

78
00:03:52,890 --> 00:03:56,650
This option is all about the naming of branches.

79
00:03:56,650 --> 00:03:59,970
We'll explore branches of course in this module.

80
00:03:59,970 --> 00:04:04,200
Generally branches can be imagined as so-called folders,

81
00:04:04,200 --> 00:04:07,330
which holds our actual code snapshots.

82
00:04:07,330 --> 00:04:11,570
Historically the core branch decor folders, so to say,

83
00:04:11,570 --> 00:04:13,200
was called master.

84
00:04:13,200 --> 00:04:15,980
This convention changed to main now,

85
00:04:15,980 --> 00:04:19,700
therefore feel free to decide whatever you prefer

86
00:04:19,700 --> 00:04:21,519
for historical reasons.

87
00:04:21,519 --> 00:04:24,630
I'll go with the default, let Git decide option.

88
00:04:24,630 --> 00:04:28,020
So with the Mars to branch being the default branch name.

89
00:04:28,020 --> 00:04:30,970
As I said, you can also choose the second option here

90
00:04:30,970 --> 00:04:32,680
just as you prefer.

91
00:04:32,680 --> 00:04:33,910
In the course though,

92
00:04:33,910 --> 00:04:37,480
I refer to the master branch quite often.

93
00:04:37,480 --> 00:04:40,120
So I'll go with that first let Git decide option

94
00:04:40,120 --> 00:04:41,823
and press next once again.

95
00:04:43,610 --> 00:04:47,760
Here we can also go with the recommended approach,

96
00:04:47,760 --> 00:04:50,430
so we can use Git from the command line

97
00:04:50,430 --> 00:04:52,920
and also some third party software.

98
00:04:52,920 --> 00:04:54,700
Won't dive too deep into this.

99
00:04:54,700 --> 00:04:58,290
As I said, we'll use Git with visual studio code

100
00:04:58,290 --> 00:04:59,370
throughout this course,

101
00:04:59,370 --> 00:05:02,780
and introduce this after the installation is finished.

102
00:05:02,780 --> 00:05:04,853
So that's again, click next here.

103
00:05:06,770 --> 00:05:10,210
This is about security and some server certificates,

104
00:05:10,210 --> 00:05:12,950
here we can go with the open SSL library.

105
00:05:12,950 --> 00:05:16,543
That's the default option, which is totally fine for us.

106
00:05:17,710 --> 00:05:22,710
Here we can define how line and in conversions will be made.

107
00:05:22,780 --> 00:05:26,030
This simply is important if we have projects,

108
00:05:26,030 --> 00:05:29,997
which are, for example, committed on a Windows machine

109
00:05:29,997 --> 00:05:33,550
and then accessed by Mac users, for example.

110
00:05:33,550 --> 00:05:35,710
This can cause some troubles

111
00:05:35,710 --> 00:05:39,700
when it comes to the line ending of text files here.

112
00:05:39,700 --> 00:05:42,900
Therefore we'll also go with the default option,

113
00:05:42,900 --> 00:05:46,400
which doesn't cause any problems here in most cases.

114
00:05:46,400 --> 00:05:49,100
So we'll also select next right here.

115
00:05:49,100 --> 00:05:51,230
This is related to the Git bash,

116
00:05:51,230 --> 00:05:52,750
as we don't use the Git bash

117
00:05:52,750 --> 00:05:55,390
we can just go with the default option two

118
00:05:55,390 --> 00:05:57,143
and click next once again.

119
00:05:58,240 --> 00:06:01,800
This is all to something more Git specific.

120
00:06:01,800 --> 00:06:03,770
Fast forward, merge, or rebased.

121
00:06:03,770 --> 00:06:06,840
These are, well, some more advanced Git concepts.

122
00:06:06,840 --> 00:06:08,920
I won't dive into these at this stage,

123
00:06:08,920 --> 00:06:12,203
therefore we'll also go with the default option here.

124
00:06:13,290 --> 00:06:16,820
This option is all about credentials.

125
00:06:16,820 --> 00:06:18,810
We will see in the next lectures

126
00:06:18,810 --> 00:06:21,320
that we have to add our credentials,

127
00:06:21,320 --> 00:06:26,320
so our name and email address to make sure that any change,

128
00:06:26,600 --> 00:06:28,640
any commit we make in Git

129
00:06:28,640 --> 00:06:31,820
can be addressed to a specific person.

130
00:06:31,820 --> 00:06:34,880
Here we'll go with the Git credential manager

131
00:06:34,880 --> 00:06:37,550
Git ships with which helps us to easier,

132
00:06:37,550 --> 00:06:40,260
well, manage these credentials that we add.

133
00:06:40,260 --> 00:06:43,350
So we'll go with this new option that we have up here,

134
00:06:43,350 --> 00:06:45,720
so let's also click next.

135
00:06:45,720 --> 00:06:48,370
For the caching we can also go with the default one,

136
00:06:48,370 --> 00:06:50,733
so enable file system caching.

137
00:06:52,900 --> 00:06:56,240
Experimental options here are something we won't use

138
00:06:56,240 --> 00:06:57,300
throughout this course,

139
00:06:57,300 --> 00:07:01,070
therefore make sure to keep these boxes unticked.

140
00:07:01,070 --> 00:07:05,830
And with these, well, few options being selected correctly

141
00:07:05,830 --> 00:07:07,910
we can now finally install Git

142
00:07:07,910 --> 00:07:10,120
by clicking onto this option down here,

143
00:07:10,120 --> 00:07:12,280
and now it takes a few seconds.

144
00:07:12,280 --> 00:07:14,520
And with that, we should be ready to go.

145
00:07:14,520 --> 00:07:17,973
We should have installed Git on our machine then.

146
00:07:20,450 --> 00:07:23,370
Git was installed successfully.

147
00:07:23,370 --> 00:07:26,880
Make sure to untick the launch Git bash option

148
00:07:26,880 --> 00:07:28,310
in case it is selected.

149
00:07:28,310 --> 00:07:32,260
And let's also untick the release notes option

150
00:07:32,260 --> 00:07:33,863
and finish the setup.

151
00:07:34,810 --> 00:07:38,380
Now to see whether Git was installed successfully

152
00:07:38,380 --> 00:07:39,680
on our machine,

153
00:07:39,680 --> 00:07:41,660
we will use the Windows scheme

154
00:07:42,540 --> 00:07:46,710
and now enter the command prompt term up here.

155
00:07:46,710 --> 00:07:50,010
You see command down there is already sufficient,

156
00:07:50,010 --> 00:07:53,400
and now we can open the command prompt on Windows

157
00:07:53,400 --> 00:07:55,263
by clicking up here.

158
00:07:57,240 --> 00:07:59,690
This is now our command prompt,

159
00:07:59,690 --> 00:08:01,430
and in this command prompt

160
00:08:01,430 --> 00:08:05,260
we can now write our first Git command.

161
00:08:05,260 --> 00:08:09,890
And this command is Git, so like this.

162
00:08:09,890 --> 00:08:11,400
Now we add a space.

163
00:08:11,400 --> 00:08:13,940
We'll dive deeper into Git commands in a few minutes,

164
00:08:13,940 --> 00:08:17,950
of course, but typically if you want to interact with Git,

165
00:08:17,950 --> 00:08:19,790
you always start with Git

166
00:08:19,790 --> 00:08:23,090
and then the command you want to execute.

167
00:08:23,090 --> 00:08:25,210
In this case, I just want to see

168
00:08:25,210 --> 00:08:29,240
whether Git was installed successfully on our machine.

169
00:08:29,240 --> 00:08:32,789
And for this, I simply want to check the installed version

170
00:08:32,789 --> 00:08:35,659
on the computer of Git that we have.

171
00:08:35,659 --> 00:08:40,600
And we can check this with Git space dash dash,

172
00:08:40,600 --> 00:08:42,153
and now version.

173
00:08:43,150 --> 00:08:45,150
With enter we can now see

174
00:08:45,150 --> 00:08:47,670
whether the installation was successful,

175
00:08:47,670 --> 00:08:51,890
and as you'll see we successfully installed Git

176
00:08:51,890 --> 00:08:54,000
in the version of 2.32,

177
00:08:54,000 --> 00:08:56,780
which was the version that we saw on the website,

178
00:08:56,780 --> 00:08:57,883
successfully.

179
00:08:58,760 --> 00:08:59,680
As I said,

180
00:08:59,680 --> 00:09:03,350
if you're watching this video at a later point in time,

181
00:09:03,350 --> 00:09:06,293
the version here might be higher on your machine.

182
00:09:07,150 --> 00:09:09,800
And this means we successfully installed Git

183
00:09:09,800 --> 00:09:11,750
on our Windows machine.

184
00:09:11,750 --> 00:09:14,580
All the preparation steps are out of the way

185
00:09:14,580 --> 00:09:17,993
and therefore we can now really dive into Git.

