WEBVTT

00:06.400 --> 00:14.620
If you want someone to copy it, to just copy this repository and have the working version of this repository,

00:14.620 --> 00:22.560
they could just clone it by using Git clone and the address of your remote repository.

00:22.570 --> 00:29.200
In my case it will be github.com slash git labs nine slash demo dot git.

00:29.230 --> 00:31.490
Now let's do the following activity.

00:31.510 --> 00:37.960
Let's create a new directory where to will clone our remote repository.

00:37.990 --> 00:41.540
We'll type MK dear demo clone.

00:41.560 --> 00:46.180
I'll change directory by type and CD then demo clone.

00:46.180 --> 00:53.170
And here I'll type git clone and paste the address of my remote repository.

00:53.200 --> 01:03.250
Now let's say that I've made changes to my main local primary repository, so let me change to the directory

01:03.280 --> 01:04.150
demo.

01:04.180 --> 01:08.590
I'll type CD, dot, dot slash demo.

01:08.620 --> 01:11.060
Now I'll create a new file.

01:11.080 --> 01:14.060
I'll type touch file two.

01:14.080 --> 01:24.160
Then I'll add this file to my local repository by typing git ad file two and I'll run the second commit

01:24.160 --> 01:27.670
by typing git commit dash.

01:27.670 --> 01:28.240
Hm.

01:28.270 --> 01:30.010
Added file two.

01:30.040 --> 01:38.270
Now I'll push the changes to the remote repository by typing git push origin master.

01:38.290 --> 01:46.780
It will copy all the changes from my local repository, which is master to my remote repository which

01:46.780 --> 01:47.660
is origin.

01:47.680 --> 01:50.980
Now let's say that someone wants to synchronize.

01:50.980 --> 01:59.080
This changes from my remote repository to his local copy of my remote repository.

01:59.110 --> 02:08.420
To do this, let me first change to demo clone by typing cd dot dot slash demo clone.

02:08.440 --> 02:14.340
And here I have to issue the following command git pull origin master.

02:14.350 --> 02:22.690
It will copy all the updates and changes from remote GitHub repository to my local copy.
