WEBVTT

0
00:00.360 --> 00:01.193
All right guys,

1
00:01.193 --> 00:04.020
in this lesson, we'll go through the installation steps

2
00:04.020 --> 00:07.950
to install Git Bash and Git on Windows.

3
00:07.950 --> 00:10.830
Mac already comes with Bash pre-installed,

4
00:10.830 --> 00:12.420
so if you're working on a Mac,

5
00:12.420 --> 00:14.070
you can skip this lesson

6
00:14.070 --> 00:16.773
and head over straight to the next lesson.

7
00:17.730 --> 00:18.990
Now, the first thing you're going to do

8
00:18.990 --> 00:22.110
is you're going to navigate to Git for Windows

9
00:22.110 --> 00:25.320
and you're going to download the Git SCM.

10
00:25.320 --> 00:26.850
Now, once that's downloaded,

11
00:26.850 --> 00:31.173
go ahead and open up the installer and select Yes.

12
00:32.130 --> 00:35.490
And then you're going to agree to the license by clicking Next,

13
00:35.490 --> 00:38.760
select the location where you're going to install Git.

14
00:38.760 --> 00:41.160
On this next step where it asks you to select

15
00:41.160 --> 00:43.530
which components should be installed,

16
00:43.530 --> 00:48.530
make sure that this checkbox next to Git Bash is selected

17
00:49.110 --> 00:52.110
and is checked as yes.

18
00:52.110 --> 00:54.540
Now go ahead and leave the defaults for the rest

19
00:54.540 --> 00:56.700
and click Next,

20
00:56.700 --> 00:59.910
and then leave the default Git as the folder

21
00:59.910 --> 01:01.770
and click Next,

22
01:01.770 --> 01:04.170
and then keep clicking Next

23
01:04.170 --> 01:07.860
and going with the default selected options.

24
01:07.860 --> 01:12.860
Select Next, and Next, and Next. (chuckles)

25
01:14.460 --> 01:16.650
And just basically keep selecting Next

26
01:16.650 --> 01:19.893
and keeping the default selections from the installer.

27
01:20.970 --> 01:23.490
Now, once installation is completed,

28
01:23.490 --> 01:25.740
let's make sure that it works.

29
01:25.740 --> 01:29.610
So let's open up the VS Code and open up a terminal,

30
01:29.610 --> 01:32.430
and you can find that on the top menu.

31
01:32.430 --> 01:34.860
Click Terminal, New Terminal.

32
01:34.860 --> 01:37.020
And then in this new terminal,

33
01:37.020 --> 01:40.410
click on that dropdown button next to the plus sign

34
01:40.410 --> 01:42.513
and select Git Bash.

35
01:43.920 --> 01:46.440
Now you should see something similar to this

36
01:46.440 --> 01:49.740
with a dollar sign in the terminal.

37
01:49.740 --> 01:51.690
Now, in order to configure VS Code

38
01:51.690 --> 01:54.180
to make Git Bash your default shell,

39
01:54.180 --> 01:56.070
we have to go to the command palette,

40
01:56.070 --> 01:59.160
and we can find that by going to View, Command Palette.

41
01:59.160 --> 02:00.870
And then in the command palette,

42
02:00.870 --> 02:04.620
we're going to search for Select Default Profile.

43
02:04.620 --> 02:06.570
And once that comes up in the dropdown,

44
02:06.570 --> 02:10.050
select it, and then select Git Bash.

45
02:10.050 --> 02:11.760
And this is going to set it so that,

46
02:11.760 --> 02:14.100
every time you open up a new terminal,

47
02:14.100 --> 02:19.100
we're working with Git Bash as the selected terminal.

48
02:19.740 --> 02:20.910
So let's try it out.

49
02:20.910 --> 02:21.870
Let's click...

50
02:21.870 --> 02:23.460
Close down that terminal,

51
02:23.460 --> 02:25.380
select a new one, and you can see Bash

52
02:25.380 --> 02:28.890
showing as the profile for our terminal.

53
02:28.890 --> 02:30.243
And there you have it.