GitHub For Beginners: Creating Your First GitHub Repository

Introduction

GitHub is the one of the most popular version control and hosting service providers in the world, to understand Github, you have to understand Git first.

One common reason that people use Git is for the purpose of version control, which is quite self-explanatory: to manage the version of your codes.

GitHub fulfilled this purpose one step further as it’s hosted in cloud instead of storing everything in your local environment.

Now let’s see how we can create our first GitHub repository and have some fun with it:

Create A New GitHub Repository From Your Local Repository

Notice that you might get an error like this, this is because you have unstaged changes in your local git repository

Simply commit the change by git commit

Now try again, the error is gone, hooray!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store