VOOZH about

URL: https://www.geeksforgeeks.org/git/creating-repository-in-github/

⇱ Creating Repository in GitHub - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Creating Repository in GitHub

Last Updated : 16 Jan, 2026

A GitHub repository is a central place to store, manage, and track changes to your project code online.

  • Create a new repository from your GitHub account with a name and visibility (public/private).
  • Add files, manage versions, and collaborate using commits, branches, and pull requests.

Git

Git is an open-source version control system used to track changes and manage different versions of a project.

  • Records every update made to the source code.
  • Stores revisions in a central repository for easy management.

GitHub

GitHub is a web-based platform built around Git that enables developers to manage code, track versions, and collaborate on projects.

  • Hosts Git repositories online.
  • Supports collaboration through issues, pull requests, and code reviews.

Relation between Git and GitHub

Git and GitHub are closely related but serve different purposes. Git is a version control tool used to track and manage source code changes locally, while GitHub is a cloud-based platform that hosts Git repositories and enables collaboration.

  • Git: Installed locally to track code changes and maintain version history.
  • GitHub: Online service that stores Git repositories and supports sharing and teamwork.

Below are the sample project files which we want to upload:

👁 Image

Steps to Create the Repository

Step 1: After successfully setting up GitHub account login to your account. You will see the screen as below. 👁 Image

Step 2: Click on the new repository option. 👁 Image

Step 3: After clicking new repository option, we will have to initialize some things like, naming our project, choosing the visibility etc. After performing these steps click Create Repository button. 👁 Image

Step 4: After clicking the button, we will be directed to below page. Right now the only file we have is a readme file. 👁 Image

Step 5: Now click on the "Upload files" button. 👁 Image

Step 6: Follow the steps mentioned in the Picture below and click "commit changes" 👁 Image

step 7: Now you will see that all of our files uploaded in our github 👁 Image

Hosting GitHub repository

GitHub Pages are designed to host your personal, organization, or project pages from a GitHub repository. As we already have the repository, we only have to activate our pages.

Step 1: Go to settings and scroll down to github pages section. Change disable option to master branch option. Now github will do some behind the scenes work and going to publish the repository. 👁 Image
Step 2: Now we are done and our project can be accessed worldwide. 👁 Image

Comment
Article Tags:
Article Tags:

Explore