Up to now, we have learned how to create a local Git repository and add or update files to it. In this recipe, we will learn how to set up a remote repo and synchronize local code with it. We will be using GitHub to host our remote repository; feel free to choose any other code hosting service.
You will need a GitHub account. Sign up for a free account if you do not already have one.
To create a new repository on GitHub, log in to your GitHub account and create a new public repository: