1
00:00:03,080 --> 00:00:05,060
For all of the game to of TV courses.

2
00:00:05,060 --> 00:00:11,930
Whenever an instructor makes a change to anything in the project, they commit that to the repo.

3
00:00:11,960 --> 00:00:12,580
What does that mean?

4
00:00:12,590 --> 00:00:19,100
Well, what I'm looking at here is the repository for the obstacle course sectioned within the complete

5
00:00:19,100 --> 00:00:20,480
unity 3D course.

6
00:00:20,480 --> 00:00:21,710
This is a course that I've created.

7
00:00:21,710 --> 00:00:23,870
That's why I'm showing it to you as an example.

8
00:00:23,870 --> 00:00:27,770
This might not be the course you're going through at the moment, but I'm just using this as an example

9
00:00:27,770 --> 00:00:28,340
to show you.

10
00:00:28,340 --> 00:00:32,450
We host our repository either on GitLab or Git Hub.

11
00:00:32,450 --> 00:00:33,740
They're both very similar.

12
00:00:33,740 --> 00:00:35,300
The interface is a little bit different.

13
00:00:35,300 --> 00:00:38,930
I'm showing you GitLab at the moment because that's what we're using nowadays.

14
00:00:38,930 --> 00:00:43,580
But some of our older projects might be using Git Hub as the place that it's storing things.

15
00:00:43,580 --> 00:00:48,860
And so you've clicked on the link in the resources section that says this lectures GitLab Commit or

16
00:00:48,860 --> 00:00:50,540
this lectures GitHub commit.

17
00:00:50,540 --> 00:00:53,540
So you've found that in the resource against the lecture, you've clicked on it.

18
00:00:53,540 --> 00:00:54,950
It'll take you to something like this.

19
00:00:54,950 --> 00:00:59,090
It'll show you the name of the lecture that should match up to the particular lecture you're watching

20
00:00:59,090 --> 00:01:00,980
at the moment, and you can see all the changes.

21
00:01:00,980 --> 00:01:05,570
So there's a lot of gobbledygook in here that you don't really need to know about, particularly here

22
00:01:05,570 --> 00:01:06,080
in Unity.

23
00:01:06,080 --> 00:01:09,800
There's a lot of things that will change within the scene that don't necessarily make sense.

24
00:01:09,800 --> 00:01:14,420
Usually what you're going to be interested in is what has changed within the code.

25
00:01:14,420 --> 00:01:16,910
So you can see here the dot CSS file within Unity.

26
00:01:16,910 --> 00:01:18,200
That's the script file.

27
00:01:18,200 --> 00:01:22,400
And I can see nice and clearly that the red line is something that's been removed.

28
00:01:22,400 --> 00:01:26,210
So we remove that line of code and the green line is something which has been added.

29
00:01:26,210 --> 00:01:30,800
If you're interested in a file that's not within the ones that have changed, then you can click on

30
00:01:30,800 --> 00:01:36,950
browse files up in the top right or files over in the left hand side of your menu.

31
00:01:36,950 --> 00:01:43,580
So you click on files that will show you here all the files from the entire project as it finishes up.

32
00:01:43,580 --> 00:01:45,230
So this is the finish state.

33
00:01:45,230 --> 00:01:48,350
Once I've recorded all of the lectures and this is the entire project.

34
00:01:48,350 --> 00:01:53,150
So if you want to go and grab the entire project as it looks at the end, check it out, play around

35
00:01:53,150 --> 00:01:53,390
with it.

36
00:01:53,390 --> 00:01:54,230
Not a problem.

37
00:01:54,230 --> 00:01:56,240
Up in the top, right, you'll see a download button.

38
00:01:56,240 --> 00:01:58,820
You can click on that and download as a zip file.

39
00:01:58,820 --> 00:02:03,890
Or if you already know a little bit about how repositories work and you've set yourself up with an application

40
00:02:03,890 --> 00:02:08,419
such as Source Tree, which I've got just here, this is an example of Source Tree.

41
00:02:08,419 --> 00:02:12,860
You can click on Clone and Clone that I'm not going to go through that exact process at the moment.

42
00:02:12,860 --> 00:02:18,080
If you want to know a whole bunch more about using Git, then check out Ben's Get Smart course.

43
00:02:18,080 --> 00:02:24,050
That's all about using Git and GitHub and source tree and it's a great source to know more about using

44
00:02:24,050 --> 00:02:25,610
source control for your own projects.

45
00:02:25,610 --> 00:02:30,500
But for now I'm just showing you how to get access to our projects that we're changing as we go through

46
00:02:30,500 --> 00:02:31,100
the lecture.

47
00:02:31,100 --> 00:02:33,230
And you can do that just by clicking on download.

48
00:02:33,230 --> 00:02:36,050
Now that will, like I said, download the end state of the project.

49
00:02:36,050 --> 00:02:39,080
I'm just going to hit back on my browser to take you back where we were.

50
00:02:39,080 --> 00:02:40,670
This is the incrementing of score.

51
00:02:40,700 --> 00:02:42,800
This is the link that I got against the lecture.

52
00:02:42,800 --> 00:02:48,140
If I click browse files over here now, I can see the files as they are at this point.

53
00:02:48,140 --> 00:02:52,910
Up to this point in the project, it won't show me the end state, it won't have any spoilers.

54
00:02:52,940 --> 00:02:56,270
It's just up to where I am in this part of the project, which might be what you need.

55
00:02:56,270 --> 00:03:01,520
You can navigate through, say, to assets and find one of the other scripts or if there's any other

56
00:03:01,850 --> 00:03:05,210
art files you're looking for, etc. You can find those within here.

57
00:03:05,210 --> 00:03:06,650
I might want to have a look in this file.

58
00:03:06,650 --> 00:03:07,370
Click on that.

59
00:03:07,370 --> 00:03:11,120
When I click on it, it'll show me this entire file or the information.

60
00:03:11,120 --> 00:03:13,220
I might say, Oh, that looks really different to mine.

61
00:03:13,220 --> 00:03:17,270
I can just highlight all this and copy it and paste it into my project.

62
00:03:17,270 --> 00:03:24,050
So if you get really stuck, you can always go and grab our code that we're working on in the lecture,

63
00:03:24,050 --> 00:03:27,590
in the project that we've already recorded, you can always go and grab that code.

64
00:03:27,590 --> 00:03:29,000
Okay, back into the project.

65
00:03:29,000 --> 00:03:31,730
I've shown you how to access the current lecture.

66
00:03:31,730 --> 00:03:35,000
What if you're looking for a previous lecture or a future lecture?

67
00:03:35,000 --> 00:03:39,950
I can click over on here for history, but that will only show the history up to this point, because

68
00:03:39,950 --> 00:03:43,700
it's within the context of my current commit.

69
00:03:43,700 --> 00:03:45,620
And you can see this commit QA in here.

70
00:03:45,620 --> 00:03:50,330
This is the big old string of numbers and letters that says this is the particular commit that relates

71
00:03:50,330 --> 00:03:54,170
to this particular project in this particular course for this particular company.

72
00:03:54,170 --> 00:03:57,320
That's all cool, but I'm looking for all of the commits.

73
00:03:57,320 --> 00:04:01,610
So instead of clicking on history over there, I'm going to over on the left hand side, click on commits

74
00:04:01,610 --> 00:04:05,120
that will show me all of the commits up to this point once again.

75
00:04:05,120 --> 00:04:10,700
So if I navigate my way up to the top and find obstacle course for the project, that will take me all

76
00:04:10,700 --> 00:04:12,290
the way to the highest level.

77
00:04:12,290 --> 00:04:15,740
Now click up here where it says 17 commits up at the top.

78
00:04:15,740 --> 00:04:17,240
That will show me the history as well.

79
00:04:17,240 --> 00:04:19,040
So there's a few ways to get to things.

80
00:04:19,040 --> 00:04:25,010
If you're in Git Hub, not Git lab, then be resourceful and have a look for the same names of things.

81
00:04:25,010 --> 00:04:29,420
You're looking for history, you're looking for commits, and you're looking for to be able to download

82
00:04:29,420 --> 00:04:32,330
or browse files if that's what you would like to do.

83
00:04:32,330 --> 00:04:35,720
Okay, that's all for this quick introduction of accessing our projects.

84
00:04:35,720 --> 00:04:37,880
I look forward to seeing you in an upcoming video.

