Skip to main content

Introduction to Git & GitHub

πŸ‘‹ What is Git?​

Git is a powerful Version Control System (VCS) that helps developers track and manage changes in their code.
It allows you to save different versions of your project, view your history, and go back to earlier versions whenever needed.

Think of Git as a time machine for your code β€” you can move backward or forward through your project’s history without losing any work.

πŸ’‘ In simple words: Git helps you keep track of every change in your code and makes teamwork easier.


🌐 What is GitHub?​

GitHub is a web-based platform that works with Git to store your code online and help you collaborate with others.
It’s like a social platform for developers where you can upload your code, contribute to other projects, and showcase your work.

Using GitHub, you can:

  • Store your Git repositories safely in the cloud
  • Collaborate with teammates from anywhere
  • Contribute to open-source projects
  • Share your work with others easily

πŸ’¬ In short: GitHub is an online home for your Git projects β€” a place for sharing, learning, and teamwork.


βš™οΈ How to Install Git​

Follow these simple steps to install Git on your computer:

πŸͺœ Step 1: Visit the Official Git Website​

Go to πŸ‘‰ https://git-scm.com/downloads


πŸͺœ Step 2: Choose Your Operating System​

Select the version that matches your operating system (Windows, macOS, or Linux).


πŸͺœ Step 3: Select the OS Architecture​

Pick the correct version for your computer (for example, 64-bit Windows).


πŸͺœ Step 4: Install Git​

  • The download will start automatically.
  • Open the setup file and follow the installation steps.
  • Keep the default settings unless you know what you’re changing.
  • Once installed, open Git Bash or your terminal and type the command below to check if Git is installed correctly:

To verify that Git has been installed successfully, open Git Bash or your terminal and run:

git --version

If Git is installed correctly, you’ll see an output similar to this:

git version 2.45.1

βœ… If you see a version number (like above), it means Git has been installed successfully! πŸŽ‰