GitHub For Beginners: Creating Your First GitHub Repository
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
1. Start a new directory or cd into your existing source folder
2. Initiate you local git repository and add files with changes that you want to commit
3. Create a new GitHub repository
4. Scroll down and copy paste the command lines from “push an existing 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!