How to Create GitHub Repository?

Keeping a track of your code changes and its history is very important for a developer. GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.

In this post we will create a new GitHub Repository.


  1. GitHub Account


Create a Repository in GitHub

Click on New to create a repository. You can create it from homepage or from repositories page.

Select the owner from the dropdown and give a name for your repository. I gave the name as “myproject1”. You can also put a description which is optional.

Select the type of repository – Public or Private. If you want to add a README file, you can select the checkbox. Same thing applicable for .gitignore file and license. I am selecting the Private repository without any initialization because I will be manually pushing my README file and .gitignore. Finally, click on create repository.

If you have created the empty repository without README file, below is the instruction screen you will see. This tells us how to create a local repository and push it to GitHub.

In the next post, we will push our code to GitHub using the command line.

Thank you All!!! Hope you find this useful.

Up ↑

%d bloggers like this: