Introduction to Github (original) (raw)

Last Updated : 28 Apr, 2026

GitHub is a web-based platform built around Git that enables version control, collaboration, and project management for software development teams.

Features of GitHub

The below are key features of GitHub:

1. **Version Control

GitHub is a web-based platform that hosts Git repositories and supports collaborative software development.

2. **Repositories

In GitHub, a repository is a central place where a project’s code and related files are stored and managed.

3. **Branches

Branches in GitHub allow developers to work on changes independently without affecting the main branch.

4. **Pull Requests

Pull requests allow developers to propose and review changes before merging them into the main branch.

5. **Issues and Project Management

GitHub Issues and project boards help manage tasks and track project progress.

6. **Actions and Automation

GitHub Actions automate development workflows directly from a repository.

Getting Started with GitHub

Step 1: Creating a GitHub Account

Go to github.com and enter the required user credentials asked on the site and then click on the SignUp for GitHub button.

Github-Signup

Step 2: Creating a Repository

To create a new repository on GitHub, follow these steps:

  1. Go to GitHub and log in.
  2. Click the "+" icon in the upper right corner and select "New repository."
  3. Enter a repository name and description.
  4. Choose whether the repository will be public or private.
  5. Click "Create repository."

GitHub Creating Repository

Upload Existing Repository to GitHub

Upload a local Git repository to GitHub by connecting it to a remote repository and pushing the code.

git init

git add .

Commit the files that you've staged in your local repository.

git commit -m "First commit"

At the top of the GitHub repository's Quick Setup page, click on the icon shown and copy the remote repository URL.

Copy GitHub URL

Add the remote repository URL to link your local repository with GitHub:

git remote add origin

Verify the configured remote URL:

git remote -v

Push the local repository to GitHub:

git branch -M main
git push -u origin main  

GitHub Repository

Download changes from a remote repository to your local repository using:

git pull

Difference between Git and GitHub

The below table helps you to understand the difference between Git and GitHub:

Git GitHub
Git is a distributed version control system (DVCS). GitHub is a web-based platform that hosts Git repositories
Tracks changes made to the code by developers. Provides tools for issues, pull requests, and code reviews.
Works on the command-line interface (CLI). Provides a web-based graphical interface.
Runs on a developer’s local machine. Acts as a remote hosting service.
Allows committing changes, creating branches, and merging code locally. Enables collaboration by allowing developers to pull and push code remotely.