So far we worked with local repository or local folder.
Now let's copy it to a remote repository which will make it accessible from any place.
To create a remote repository.
You have to complete your GitHub sign up.
You have to visit GitHub.com and create your account after it is done.
You can add a new repository in your account.
To do this, click on your repository button in right upper corner of GitHub site and click new.
It's a shiny green button.
Give you a repository a name.
In my case, it's demo.
Make it public or private and click create repository.
Now you can copy this newly created link.
In my case, it's GitHub dot com slash git labs nine slash demo git and it's using https, so I'll copy
this link and run the following command with this link.
I'll type git remote, add origin and the link itself.
This will configure the remote repository address on your system.
If you made a mistake while typing this command or while typing URL, you can remove this remote repository
address by typing git, remote or ram origin.
After it is removed, set up the remote address again using the correct URL, you can check the status
of the remote address by typing git remote dash v.
It will be a good idea to check the address prior to pushing your files your project to the remote destination.
When you are sure that everything is set up correctly, you can copy your local project to remote repository.
This process is called pushing so to push project to remote repository you should type git push dash
you origin.
This is the name of your remote project and master.
It's your local project.
Typically the remote repository will demand a username and password unless you have set it to use ssh
keys.
When the project is pushed to the remote repository, you should be able to view it.
If it is a private repository, you'll have to log into the remote repository in order to see your work.
So when it is done, anyone can copy your project and work on it.
To download your project you have to use Git pool command.
The spool you can consider is as download.
You're going to have several remote repositories simultaneously and to distinguish them you have to
give them different names.
Commonly the main repository is called origin.
That's what we used in this command.