Skip to main content

Create a Repository on GitHub

A repository (repo) is like a special folder on GitHub where you store your project files and track their changes.
You can think of it as your project’s online home.

This guide will help you create a new repository on GitHub and connect it with Git on your computer.

πŸš€ Steps to Create a Repository​

πŸͺœ Step 1: Go to GitHub and Create a New Repository​

  1. On the GitHub page, click the + icon in the upper-right corner and select New repository. img-1

πŸͺœ Step 2: Enter Repository Name​

  1. Type a name for your repository β€” for example, My_New_Repo. img-2

πŸͺœ Step 3: Choose Repository Visibility​

  1. Choose whether your repository should be:

    • Public – anyone can see your code
    • Private – only you (and selected people) can access it
    img-3
tip

πŸ’‘ For learning or practice, it’s best to keep your repository public.


πŸͺœ Step 4: Create the Repository​

  1. Click the Create repository button to finish. img-4

You’ll now see an empty repository page on GitHub.

img-5

πŸ”— Step 5: Clone the Repository to Your Computer​

Cloning means downloading a copy of your GitHub repository to your local computer so you can work on it.

  1. Copy the repository link from GitHub.

    img-6
  2. Open Git Bash on your computer and run the command below:

git clone <repository-link>

🟒 Replace <repository-link> with your actual repository link.

Example:

git clone https://github.com/siddhi-codes/My_New_Repo.git
img-8
  1. After cloning, you’ll see a new folder (for example, My_New_Repo) on your computer.img-7

βš™οΈ Before You Create a Repository

Before creating a repository on GitHub, make sure you have the following setup completed:

βœ… 1. GitHub Account: You must have a registered account on GitHub.

βœ… 2. Git Installed on Your Computer: Download and install Git from https://git-scm.com/. You can verify it using this command:

git --version

βœ… 3. Git Connected to GitHub: Your Git software should be connected to your GitHub account using:

git config --global user.name "YourGitHubUsername"
git config --global user.email "[email protected]"