🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Create a GitHub Repository? – 3 Ways

By Sanjay JethvaUpdated on May 21, 2025 5 min read

A simple yet practical guide to help you understand a GitHub Repository and how you can create one.

So, without any ado, let us get into this.

What is a GitHub Repository?

A GitHub Repository is the most basic element of GitHub, where you can store your code, files, and every revision history of each file.

A repository can have multiple collaborators, and this file can be kept public or private. The choice is yours.

One of the key reasons to create a repository is better work management.

You and your team can better manage your work within the repository, have discussions, and share feedback without switching between different channels.

Now that you know what a repository is let us see how you can create one!

How to Create a GitHub Repository?

You can create a repository in GitHub in three ways:

  1. Manual Method
  2. Import Using Clone URL
  3. Use GitHub Desktop App

Method 1: How to Add Repository in GitHub Manually?

Log into your account and click Your repositories in the left menu.

Your repositories tab

Click New on the top-right corner.

click on new

Enter name and description of your project.

enter name and description

Scroll down.

Set it to public or private. Choose to add README and .gitignore and click create.

Create Repository

And it is done.

Method 2: How to Import Remote Repository Using Clone URL?

On the create a new repo step, click Import a repo.

Import repository

Add old repo URL, set name, public or private and click Begin Import.

start the import

Now, your repository is created.

Importing completed

Method 3: How to Add Remote Repository Using Desktop App?

Install the desktop app and log in using your account. In File, click New repository.

Desktop app - create new repository

Enter the needed details here.

enter the needed info

Click on Publish repository.

Publish

For the final process, publish it to github.com and the process is done.

Publish repository

Creating GitHub Remote Repository – Best Practices

Isn’t it easy?  Creating a repository is an easy task; here are some best practices that you can follow to make the most of them.

  • Create a README file: This makes it easy for everyone in the project to understand the work better. You can also add important information about your project in this file.
  • Prefer branching over forking: In order to keep your collaboration streamlined, it is recommended to collaborate work from one single repository regularly. The forking process generally best works for accepting inputs from people who are not directly related to the project.
  • Use Git Large File Storage: GitHub.com limits the sizes of files that are allowed in the repositories, but to go beyond the desired number, you can go for Git Large File Storage.

We would be happy to help. Thank you for reading. Ciao!

Sanjay Jethva Full Image
Article bySanjay Jethva

Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe. His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.