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β
- On the GitHub page, click the + icon in the upper-right corner and select New repository.

πͺ Step 2: Enter Repository Nameβ
- Type a name for your repository β for example, My_New_Repo.

πͺ Step 3: Choose Repository Visibilityβ
Choose whether your repository should be:
- Public β anyone can see your code
- Private β only you (and selected people) can access it

π‘ For learning or practice, itβs best to keep your repository public.
πͺ Step 4: Create the Repositoryβ
- Click the Create repository button to finish.

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

π 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.
Copy the repository link from GitHub.

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

- After cloning, youβll see a new folder (for example, My_New_Repo) on your computer.

βοΈ 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]"