WEBVTT

00:00.580 --> 00:05.500
Welcome to setting up our repo and committing in this video.

00:05.560 --> 00:09.890
We will set up our repository will register source tree.

00:09.910 --> 00:17.830
Make sure that we come commit later on learn how to glued data from our repository stage our files and

00:17.970 --> 00:21.100
finally make our first commit.

00:21.100 --> 00:27.790
So one of the questions is how many repositories now on a complex projects you could use a repo perm

00:27.790 --> 00:29.310
model that you create.

00:29.320 --> 00:31.930
This would give you the best level of control.

00:32.050 --> 00:37.960
But in this case it's going to be to develop our model simply aren't that detailed to warrant a repository

00:37.960 --> 00:38.850
just with the model.

00:38.860 --> 00:44.600
So you could track your whole project in a repo and that is what we're going to do.

00:44.610 --> 00:49.550
Of course it will depend on the complexity of your project and how much control you need in that scene

00:49.620 --> 00:49.880
in.

00:49.890 --> 00:51.820
Very important.

00:51.820 --> 00:57.730
Now talking about our repository which is going to store and track for changes in our prob project for

00:57.730 --> 01:05.020
us we can exclude data from it and we do that to allow faster commits at a smaller size and that keeps

01:05.020 --> 01:08.940
the database the repository simple and manageable.

01:08.980 --> 01:15.450
We want to avoid storing derived or generated data in the repository wherever necessary.

01:15.460 --> 01:20.410
An example here for instance will be our reference material they might be photos you gathered off the

01:20.410 --> 01:22.750
Internet or even gone and taken yourself.

01:22.960 --> 01:26.480
Those are going to be static not changing there's no point in storing them.

01:26.500 --> 01:32.800
And they're very large files in comparison to everything else so we will want to exclude them.

01:33.130 --> 01:38.740
There we'll go on to committing and it is important that you'll need to save all the documents that

01:38.740 --> 01:43.200
constitute that commit first before staging them and then finally committing them.

01:43.200 --> 01:49.360
Now this is going to be like saving our working folder and zipping it up at that moment in time.

01:49.450 --> 01:54.180
But it's going to give us far more control over where we can go back to.

01:54.190 --> 02:01.300
We can even pull out files from way in the past and bring them back to the present with a new direction

02:01.300 --> 02:02.080
to them.

02:02.470 --> 02:08.910
So let's go on over and first set up our repository and then go through and manage these other things.

02:11.290 --> 02:16.600
So here we are in my file system I'm using a Mac here you'll be using Windows Explorer if you're on

02:16.690 --> 02:19.420
that or wherever the limits equivalent is.

02:19.450 --> 02:26.170
So we've got my home directory here I've created repo's and I've got two here that are called Game asset

02:26.170 --> 02:26.770
PAC.

02:26.770 --> 02:31.250
One is for tracking my videos that I'm creating for you guys right here.

02:31.330 --> 02:36.220
And one of them is going to be an example sarm in a very similar position as you are and I want to show

02:36.220 --> 02:40.850
you what mine's looking at so you're familiar with it when I use it from now onwards.

02:40.900 --> 02:45.670
So I've got an example here that I'm going to make into my repository.

02:45.680 --> 02:51.640
So first of all an if you've not already done this please pause the video now and go register source

02:51.640 --> 02:52.780
tree.

02:52.810 --> 02:55.800
If you've already done that then let's carry on.

02:55.960 --> 03:01.630
Now I've already got some repositories here you can see I've got seven representing the seven sections

03:01.630 --> 03:03.610
of the course so far.

03:03.610 --> 03:06.610
Now you are not going to see anything here whatsoever.

03:06.760 --> 03:13.960
But now we can go ahead and create a new repo so we can click on new repository and we go and create

03:14.020 --> 03:16.000
a local repositories.

03:16.000 --> 03:17.530
The third option down.

03:19.300 --> 03:22.810
Once we've done that we've got this destination park here now.

03:22.810 --> 03:23.770
Be careful.

03:23.770 --> 03:28.010
It's very easy to think that this name underneath is going to create a folder.

03:28.120 --> 03:33.220
If I just click create Now I would end up with a repo called my blender project which is great but it's

03:33.220 --> 03:38.740
going to contain everything in my user section and I don't want that so I'm going to click these three

03:38.740 --> 03:45.340
dots to the right hand side and simply go and select the one I've created which is this game pack example

03:45.640 --> 03:46.800
and a click on Open.

03:46.810 --> 03:52.600
Now this is the name of the project here and I'm going to name it my blender project that's absolutely

03:52.600 --> 03:53.080
fine.

03:53.140 --> 03:54.430
Type gitte.

03:54.430 --> 03:55.810
That's what we want.

03:55.810 --> 03:59.150
And here also create local remote repository.

03:59.200 --> 04:03.410
Leave that one unchecked and go ahead and click create.

04:05.150 --> 04:08.840
And there we go we've got a blender project that's appeared.

04:08.930 --> 04:14.480
And if we go ahead and double click on that we can open it up and you should have something that looks

04:14.510 --> 04:20.360
pretty similar to this so I'm just going to rearrange these windows a little because it's been opened

04:20.390 --> 04:22.140
on a larger screen.

04:22.250 --> 04:29.600
So we have a series of well this area at the top here is staged files and there's nothing at state it.

04:29.600 --> 04:32.040
There's nothing ready for committing.

04:32.060 --> 04:37.310
So one of the first things we need to do is make sure that everything we've been working with has been

04:37.310 --> 04:38.570
saved and shut down.

04:38.570 --> 04:42.380
So if you still got a blender file open that hasn't been saved.

04:42.380 --> 04:47.390
As soon as we stage it I say this is ready for commit in its current state.

04:47.480 --> 04:52.040
If you then go ahead and click save even though it's been staged before.

04:52.070 --> 04:53.410
It won't be right.

04:53.420 --> 04:54.860
So what do we need to do.

04:54.860 --> 04:56.720
Well we do want to keep our message.

04:56.720 --> 05:02.990
We can see meshes we can see here that the assets this is our directory that we've got so we've got

05:02.990 --> 05:07.160
meshes under here which is going to collapse that with that little arrow we have got textures and my

05:07.160 --> 05:10.460
details about how to nail textures I want to keep that.

05:10.730 --> 05:16.610
And here is our reference material and as you can see I've just got a load of images from the Internet

05:16.610 --> 05:24.230
so I've put a warning there do not use in the course directly which is why I've pulled a load of images

05:24.230 --> 05:24.410
there.

05:24.410 --> 05:32.300
Now I can select that and when I select that I can go up to actions and select ignore and it gives us

05:32.360 --> 05:34.610
a series of options.

05:34.610 --> 05:40.610
So here we've got to ignore exact file names if you got a specific file that you want to add to the

05:40.610 --> 05:41.140
gate.

05:41.230 --> 05:45.670
Ignore that we can have ignore all files with this extension.

05:45.750 --> 05:51.710
And I don't want to do that because some of these pian Geez we're going to be producing pages later

05:51.710 --> 05:53.570
on when we produce our own texture.

05:53.570 --> 05:54.850
So we certainly don't want that.

05:55.010 --> 05:57.920
I want to just ignore everything beneath.

05:58.040 --> 06:02.390
And in this case anything that goes in that reference folder will not be added to our repository.

06:02.390 --> 06:04.210
And I'm very happy to that.

06:04.220 --> 06:09.860
The other thing to consider is where it says add this ignore entry to the global ignore list.

06:09.860 --> 06:13.990
Now my folder name reference material do not use in this course.

06:14.000 --> 06:15.480
No copyright for it.

06:15.530 --> 06:21.710
We've got to bear in mind that the global ignored list will place anything with that particular folder

06:21.710 --> 06:29.050
name onto it and that means every repo we then make going forward it will be included in the ignore

06:29.060 --> 06:35.840
So if you have a name something like texture's or meshes that can be very dangerous because that will

06:35.840 --> 06:42.890
mean that every other one but you ever use will be added unless you remove it from that global ignore

06:42.890 --> 06:43.460
list.

06:43.460 --> 06:49.910
So in general I wouldn't use global ignore list I do in this case but I would make sure it only applies

06:49.910 --> 06:56.750
to this repository only so I'm going to go ahead now and click okay and that will ignore that.

06:56.840 --> 07:01.100
I've then got a read me file which is what I have build up as I go.

07:01.110 --> 07:05.060
Of course you may want to add notes as you go into a text file.

07:05.060 --> 07:11.060
Perhaps that says at what stage you are thinking etc. alas a good log and of course you can update that

07:11.150 --> 07:12.630
as you go.

07:12.740 --> 07:18.860
So now that I've got my assets my meshes and textures I can just click up the top here and select everything

07:18.860 --> 07:22.080
and we can see it moves from the bottom here to that SOP.

07:22.100 --> 07:27.030
Now that we've done that it's red it's staged and it's ready for committing.

07:27.100 --> 07:33.200
Now I like to keep my commit messages nice and short and put the detail about what's going on in my

07:33.200 --> 07:34.640
read me file.

07:34.640 --> 07:41.570
And here for instance I can say first commits because that is what it is we've now got stuff that we

07:41.570 --> 07:49.110
can commit and I'm going to hit commit and there we go ah everything's disappear from the screen.

07:49.130 --> 07:50.460
What's gone on here.

07:50.570 --> 07:56.020
Well we're no longer looking at our what's called Master branch.

07:56.030 --> 07:59.310
So on the left hand side you can see it says Master.

07:59.420 --> 08:03.060
If we go ahead and click on that then we can see what's going on.

08:03.080 --> 08:05.660
And that is the first kimmett.

08:05.660 --> 08:10.350
Now we go ahead and change anything we'll have changes up on top.

08:10.940 --> 08:16.220
So I am now going to show you my particular repository so you can see how it looks after you've done

08:16.220 --> 08:17.620
a few commits.

08:18.640 --> 08:23.950
Okay so we are both back over on my repository here and you can see I've got my initial commits down

08:23.950 --> 08:27.360
here then I fleshed out my read me with what I want to do.

08:27.460 --> 08:34.300
Basic folder structure made one of the lectures is there another lecturers here and this is going to

08:34.300 --> 08:35.770
be the end of the 10th lecture.

08:35.770 --> 08:42.180
So what I would do in this particular case is I'd make sure that all of my items that are needed were

08:42.190 --> 08:43.760
state which is fine.

08:44.020 --> 08:46.180
I'm going to go ahead and hit commits.

08:46.270 --> 08:51.850
And these are the trials that I've been working on and I'm going to put in here the name of the lecture

08:51.880 --> 08:54.590
that I am working on which is very powerful.

08:54.880 --> 09:01.150
And I've got that in my paste buffer so I can just place that in now ordinarily Ah you're not going

09:01.150 --> 09:02.800
to be using this push changes.

09:02.800 --> 09:07.950
I am because I've got an online repo as well and we might cover that later on.

09:07.960 --> 09:11.600
But don't worry about pushing changes here that's something I need to do.

09:11.620 --> 09:12.470
You won't.

09:12.640 --> 09:15.900
And once I've done that we can see that there are no more changes.

09:15.910 --> 09:19.330
And I've now got that all set up and ready to go.

09:20.500 --> 09:22.840
Okay guys so it's Challenge time.

09:22.840 --> 09:30.160
I'd like you to make your commit so an optional task here is to create a text file explaining what you

09:30.160 --> 09:33.640
have done that helps you keep track of your changes.

09:33.710 --> 09:38.830
We can't really see what's going on in individual blender files and we want to keep those committee

09:38.830 --> 09:41.730
names a short and succinct as possible.

09:42.480 --> 09:50.700
Make sure you save all your open documents ignore your reference material stage your files and then

09:50.700 --> 09:55.860
finally commit with the short and precise name as told what it is.

09:55.860 --> 09:57.890
It's a title for that comment.

09:57.990 --> 10:04.540
I've already done mine so ngoni to balls the video and I will see you guys in the next lecture.
