1
00:00:00,000 --> 00:00:02,850
Today, GIT is pretty much the de facto standard

2
00:00:02,850 --> 00:00:04,083
for co-repository.

3
00:00:05,880 --> 00:00:07,290
In this example, we're going to walk through

4
00:00:07,290 --> 00:00:09,390
how to set up a local repository

5
00:00:09,390 --> 00:00:11,610
using GIT and just go over a few commands

6
00:00:11,610 --> 00:00:12,750
just to get familiar with it.

7
00:00:12,750 --> 00:00:14,250
We're not going to go very in depth,

8
00:00:14,250 --> 00:00:16,110
just a little surface level information

9
00:00:16,110 --> 00:00:19,620
about how to commit changes, what commit changes are,

10
00:00:19,620 --> 00:00:22,950
how to add culture, repository, et cetera.

11
00:00:22,950 --> 00:00:26,130
Disable repo option is going to be used again

12
00:00:26,130 --> 00:00:28,050
to make sure that we're not using that

13
00:00:28,050 --> 00:00:29,970
for our default search.

14
00:00:29,970 --> 00:00:32,270
We want to disable it so it'll use the internet.

15
00:00:37,751 --> 00:00:39,870
Okay, that was successful.

16
00:00:39,870 --> 00:00:42,000
Next, we're going to use the GIT configure command

17
00:00:42,000 --> 00:00:44,880
just to make some global configuration changes.

18
00:00:44,880 --> 00:00:47,220
So this is our name and our email address.

19
00:00:47,220 --> 00:00:48,063
We GIT config.

20
00:00:50,280 --> 00:00:51,113
Global.

21
00:00:56,730 --> 00:00:59,393
The same thing, but we're going to change the email address.

22
00:01:12,900 --> 00:01:13,733
All right.

23
00:01:15,480 --> 00:01:17,040
Now, I'm going to make a directory.

24
00:01:17,040 --> 00:01:18,900
This is where we're going to commit all of our changes

25
00:01:18,900 --> 00:01:20,910
and store all of the code that we plan

26
00:01:20,910 --> 00:01:23,970
on using for GIT, I'm going to make a directory.

27
00:01:23,970 --> 00:01:25,720
This, we'll call it "Dell Project".

28
00:01:28,830 --> 00:01:31,683
Okay, now let's initialize this folder.

29
00:01:36,360 --> 00:01:39,960
So we used a GIT config command to set up the folder

30
00:01:39,960 --> 00:01:43,230
for all the information that we're going to be receiving,

31
00:01:43,230 --> 00:01:46,230
and it configures the folder to respond to GIT commands

32
00:01:46,230 --> 00:01:47,880
and everything that needs to be done

33
00:01:47,880 --> 00:01:50,730
GIT will handle it for us in that directory.

34
00:01:50,730 --> 00:01:52,440
So if we looked at that directory,

35
00:01:52,440 --> 00:01:55,563
we'll see we have a few new files in there,

36
00:01:57,630 --> 00:01:58,780
like the GIT directory.

37
00:01:59,760 --> 00:02:00,813
We'll see it again,

38
00:02:03,150 --> 00:02:05,670
as all the necessary configuration files

39
00:02:05,670 --> 00:02:07,820
that's required to have GIT up and running.

40
00:02:08,940 --> 00:02:10,650
All right, so now we're going to actually create

41
00:02:10,650 --> 00:02:12,330
and manage a project but we're just going to use

42
00:02:12,330 --> 00:02:13,980
a simple text file,

43
00:02:13,980 --> 00:02:16,080
and we use the tried-and-true Hello World.

44
00:02:17,040 --> 00:02:19,713
So we'll do dev-project,

45
00:02:21,900 --> 00:02:22,733
Hello World,

46
00:02:27,240 --> 00:02:28,073
All right.

47
00:02:31,260 --> 00:02:32,553
And type in Hello World.

48
00:02:38,370 --> 00:02:42,213
From Jamario Kelly,

49
00:02:43,200 --> 00:02:45,633
all right, right click.

50
00:02:46,860 --> 00:02:49,010
Next, we're going to cd into that dev project.

51
00:02:50,910 --> 00:02:53,560
Okay, and now we're going to run the GIT status command.

52
00:02:56,010 --> 00:02:58,350
All right, so I see it's looking through the folder

53
00:02:58,350 --> 00:03:01,170
and it has identified the HelloWorld.txt file

54
00:03:01,170 --> 00:03:03,990
that we just created, but it's not being tracked

55
00:03:03,990 --> 00:03:06,870
because we have to use an Add command to let GIT know,

56
00:03:06,870 --> 00:03:08,520
Hey, this file?

57
00:03:08,520 --> 00:03:10,173
I want you to manage and track.

58
00:03:11,190 --> 00:03:12,340
So let's do that first.

59
00:03:14,160 --> 00:03:18,150
Okay, now we're going to do the GIT commit

60
00:03:18,150 --> 00:03:20,073
to actually save the information.

61
00:03:21,330 --> 00:03:24,090
Now this dash M option is just the message

62
00:03:24,090 --> 00:03:26,190
that we want to include.

63
00:03:26,190 --> 00:03:28,413
We can call it our initial commit.

64
00:03:36,300 --> 00:03:38,703
Okay, see, they went through successfully.

65
00:03:39,720 --> 00:03:41,120
Now, let's check the status.

66
00:03:43,620 --> 00:03:44,790
All right, we see it's letting us know

67
00:03:44,790 --> 00:03:47,040
there's nothing to commit, the working director is clean,

68
00:03:47,040 --> 00:03:50,190
meaning that per the last commit we did,

69
00:03:50,190 --> 00:03:53,073
any changes that was added are now saved.

70
00:03:54,270 --> 00:03:56,620
Now we're going to change this file one more time.

71
00:04:01,230 --> 00:04:03,280
Okay, let's make one more change to this.

72
00:04:07,830 --> 00:04:10,060
Let's see, GIT version

73
00:04:11,760 --> 00:04:13,733
control test, okay.

74
00:04:19,620 --> 00:04:22,142
Let's do GIT status, see what it says to us now.

75
00:04:24,420 --> 00:04:26,700
Now you see that since the Hello World txt

76
00:04:26,700 --> 00:04:28,350
is being managed by GIT,

77
00:04:28,350 --> 00:04:30,330
It's been identified as being modified.

78
00:04:30,330 --> 00:04:33,870
But again, in order to update to the next commit

79
00:04:33,870 --> 00:04:36,117
we still need to add this txt.

80
00:04:36,117 --> 00:04:40,113
Okay, So we're going to do GIT add Hello World.

81
00:04:41,850 --> 00:04:43,770
Go ahead and commit this,

82
00:04:43,770 --> 00:04:45,810
I'm going to add our message,

83
00:04:45,810 --> 00:04:47,133
call it revision one.

84
00:04:51,278 --> 00:04:52,111
Okay.

85
00:04:53,700 --> 00:04:54,950
I want to go to GIT status.

86
00:04:56,040 --> 00:04:59,583
Shouldn't be anything that's pending.

87
00:05:00,540 --> 00:05:01,560
All right.

88
00:05:01,560 --> 00:05:03,723
Final command's going to run is the GIT log.

89
00:05:06,120 --> 00:05:07,260
What I get is a clean view

90
00:05:07,260 --> 00:05:09,600
of all the changes that's been made.

91
00:05:09,600 --> 00:05:11,820
Now, this would be useful when you want to revert

92
00:05:11,820 --> 00:05:15,630
to a previous version, you can use the commit identifier

93
00:05:15,630 --> 00:05:18,390
that's located to the right of the commit key.

94
00:05:18,390 --> 00:05:19,950
We're not going to go over that in this lesson,

95
00:05:19,950 --> 00:05:22,290
it can get pretty in depth when it comes to GIT,

96
00:05:22,290 --> 00:05:23,490
but those are the basics

97
00:05:23,490 --> 00:05:25,110
just to understand a little bit about GIT,

98
00:05:25,110 --> 00:05:26,760
how to set up a repository,

99
00:05:26,760 --> 00:05:28,380
and to view some of the changes

100
00:05:28,380 --> 00:05:30,870
and how GIT manages those changes.

101
00:05:30,870 --> 00:05:32,190
Thank you for sticking with this walkthrough,

102
00:05:32,190 --> 00:05:33,990
and I'll see you in the next lesson.

