Working with a public server on GitHub
To start working with a public hosted remote, we have to get one. Today, it is not difficult to achieve; the world has plenty of free online services offering room for Git repositories. One of the most commonly used is GitHub.
Setting up a new GitHub account
GitHub offers unlimited free public repositories, so we can make use of it without investing a penny. In GitHub, you have to pay only if you need private repositories; for example, to store closed source code you base your business on.
Creating a new account is simple:
- Go to https://github.com.
- Sign up, filling the textboxes, as per the following image, and provide a username, a password, and your email:

When done, we are ready to create a brand new repository in which to push our work:

Go to the Repositories
tab, click the green New
button, and choose a name for your repository, as you can see in the following screenshot:

For the purpose of learning, I will create a simple repository for my personal recipes...