1
00:00:00,360 --> 00:00:01,193
Instructor: All right guys,

2
00:00:01,193 --> 00:00:04,019
in this lesson, we'll go through the installation steps

3
00:00:04,019 --> 00:00:07,950
to install Git Bash and Git on Windows.

4
00:00:07,950 --> 00:00:10,830
Mac already comes with Bash pre-installed,

5
00:00:10,830 --> 00:00:12,420
so if you're working on a Mac,

6
00:00:12,420 --> 00:00:14,070
you can skip this lesson

7
00:00:14,070 --> 00:00:16,773
and head over straight to the next lesson.

8
00:00:17,730 --> 00:00:18,990
Now, the first thing you're gonna do

9
00:00:18,990 --> 00:00:22,110
is you're gonna navigate to Git for Windows

10
00:00:22,110 --> 00:00:25,320
and you're gonna download the Git SCM.

11
00:00:25,320 --> 00:00:26,850
Now, once that's downloaded,

12
00:00:26,850 --> 00:00:31,173
go ahead and open up the installer and select Yes.

13
00:00:32,130 --> 00:00:35,490
And then you're gonna agree to the license by clicking Next,

14
00:00:35,490 --> 00:00:38,760
select the location where you're gonna install Git.

15
00:00:38,760 --> 00:00:41,160
On this next step where it asks you to select

16
00:00:41,160 --> 00:00:43,530
which components should be installed,

17
00:00:43,530 --> 00:00:48,530
make sure that this checkbox next to Git Bash is selected

18
00:00:49,110 --> 00:00:52,110
and is checked as yes.

19
00:00:52,110 --> 00:00:54,540
Now go ahead and leave the defaults for the rest

20
00:00:54,540 --> 00:00:56,700
and click Next,

21
00:00:56,700 --> 00:00:59,910
and then leave the default Git as the folder

22
00:00:59,910 --> 00:01:01,770
and click Next,

23
00:01:01,770 --> 00:01:04,170
and then keep clicking Next

24
00:01:04,170 --> 00:01:07,860
and going with the default selected options.

25
00:01:07,860 --> 00:01:12,860
Select Next and Next and Next. (chuckles)

26
00:01:14,460 --> 00:01:16,650
And just basically keep selecting Next

27
00:01:16,650 --> 00:01:19,893
and keeping the default selections from the installer.

28
00:01:20,970 --> 00:01:23,490
Now, once installation is completed,

29
00:01:23,490 --> 00:01:25,740
let's make sure that it works.

30
00:01:25,740 --> 00:01:29,610
So let's open up the s-code and open up a terminal,

31
00:01:29,610 --> 00:01:32,430
and you can find that on the top menu.

32
00:01:32,430 --> 00:01:34,860
Click Terminal, New Terminal.

33
00:01:34,860 --> 00:01:37,020
And then in this new terminal,

34
00:01:37,020 --> 00:01:40,410
click on that dropdown button next to the plus sign

35
00:01:40,410 --> 00:01:42,513
and select Git Bash.

36
00:01:43,920 --> 00:01:46,440
Now you should see something similar to this

37
00:01:46,440 --> 00:01:49,740
with a dollar sign in the terminal.

38
00:01:49,740 --> 00:01:51,690
Now, in order to configure the s-code

39
00:01:51,690 --> 00:01:54,180
to make Git Bash your default shell,

40
00:01:54,180 --> 00:01:56,070
we have to go to the command palette,

41
00:01:56,070 --> 00:01:59,160
and we can find that by going to View, Command Palette.

42
00:01:59,160 --> 00:02:00,870
And then in the command palette,

43
00:02:00,870 --> 00:02:04,620
we're gonna search for Select Default Profile.

44
00:02:04,620 --> 00:02:06,570
And once that comes up in the dropdown,

45
00:02:06,570 --> 00:02:10,050
select it and then select Git Bash.

46
00:02:10,050 --> 00:02:11,760
And this is going to set it so that,

47
00:02:11,760 --> 00:02:14,100
every time you open up a new terminal,

48
00:02:14,100 --> 00:02:19,100
we're working with Git Bash as the selected terminal.

49
00:02:19,740 --> 00:02:20,910
So let's try it out.

50
00:02:20,910 --> 00:02:21,870
Let's click...

51
00:02:21,870 --> 00:02:23,460
Close down that terminal,

52
00:02:23,460 --> 00:02:25,380
select a new one, and you can see Bash

53
00:02:25,380 --> 00:02:28,890
showing as the profile for our terminal.

54
00:02:28,890 --> 00:02:30,243
And there you have it.

