WEBVTT

00:05.850 --> 00:11.130
So far we worked with local repository or local folder.

00:11.160 --> 00:19.260
Now let's copy it to a remote repository which will make it accessible from any place.

00:19.260 --> 00:21.330
To create a remote repository.

00:21.360 --> 00:25.060
You have to complete your GitHub sign up.

00:25.080 --> 00:31.980
You have to visit GitHub.com and create your account after it is done.

00:32.010 --> 00:35.800
You can add a new repository in your account.

00:35.820 --> 00:45.930
To do this, click on your repository button in right upper corner of GitHub site and click new.

00:45.960 --> 00:48.090
It's a shiny green button.

00:48.090 --> 00:50.310
Give you a repository a name.

00:50.340 --> 00:52.710
In my case, it's demo.

00:52.740 --> 00:57.810
Make it public or private and click create repository.

00:57.840 --> 01:02.170
Now you can copy this newly created link.

01:02.190 --> 01:13.620
In my case, it's GitHub dot com slash git labs nine slash demo git and it's using https, so I'll copy

01:13.620 --> 01:17.280
this link and run the following command with this link.

01:17.290 --> 01:23.840
I'll type git remote, add origin and the link itself.

01:23.850 --> 01:29.100
This will configure the remote repository address on your system.

01:29.100 --> 01:38.430
If you made a mistake while typing this command or while typing URL, you can remove this remote repository

01:38.430 --> 01:44.240
address by typing git, remote or ram origin.

01:44.250 --> 01:51.390
After it is removed, set up the remote address again using the correct URL, you can check the status

01:51.390 --> 01:56.490
of the remote address by typing git remote dash v.

01:56.520 --> 02:05.490
It will be a good idea to check the address prior to pushing your files your project to the remote destination.

02:05.490 --> 02:14.650
When you are sure that everything is set up correctly, you can copy your local project to remote repository.

02:14.670 --> 02:23.670
This process is called pushing so to push project to remote repository you should type git push dash

02:23.670 --> 02:25.290
you origin.

02:25.290 --> 02:29.460
This is the name of your remote project and master.

02:29.460 --> 02:31.630
It's your local project.

02:31.650 --> 02:40.560
Typically the remote repository will demand a username and password unless you have set it to use ssh

02:40.560 --> 02:41.250
keys.

02:41.250 --> 02:47.190
When the project is pushed to the remote repository, you should be able to view it.

02:47.190 --> 02:54.900
If it is a private repository, you'll have to log into the remote repository in order to see your work.

02:54.900 --> 03:00.960
So when it is done, anyone can copy your project and work on it.

03:00.960 --> 03:06.270
To download your project you have to use Git pool command.

03:06.270 --> 03:10.170
The spool you can consider is as download.

03:10.170 --> 03:17.850
You're going to have several remote repositories simultaneously and to distinguish them you have to

03:17.850 --> 03:20.060
give them different names.

03:20.070 --> 03:24.150
Commonly the main repository is called origin.

03:24.150 --> 03:27.150
That's what we used in this command.
