Struggling to understand “git/GitHub”? Difference between Git and GitHub

Tasadduq Ali
3 min readOct 30, 2022

--

Today we would discuss the difference between Git and GitHub.

GitHub is basically Google Docs but for programming code.

There’s this very popular piece of software out there called Git (not GitHub, just “Git”). You can install it on your computer for free.
What it primarily does is it allows you to take a snapshot of what an entire, folder of files looks like (a “commit”) and save that snapshot to a timeline (the “history”).

You can then jump to any part of the history to roll back that entire folder to what it looked like at the time of the snapshot (you can check out” any commit in the history).
It’s very handy for a lot of things, but it is primarily designed to be used to store source code for software projects.

Git’s other key feature is it allows you to sync your commit history with other people who also installed Git.
You could download (“pull”) all of the commits I’ve made in my history somewhere on your computer (a “repository”) and have access to all of my changes.

Likewise, I could do the same to your copy of the repository. This allows us to share edits to our project, allowing us to work on the same project together at the same time. The general way most people use Git in a team these days is to have a single designated computer with Git installed that acts as the “main” copy of the history (a “central repository”).
GitHub is a website that runs Git under the hood and wraps it into a pretty graphical UI that lets you explore the repository contents and perform actions through their website.

(Git is command line only, FYI). GitHub fulfills all the criteria that make for a good central repository: their web servers are always on, and publicly accessible on the Internet, and Kalways is reachable at https://github.com.
GitHub will allow you to upload your project to their servers and use them as your central repo free of charge. The only thing they ask you in return is to make your entire project open and public for the entire world to see.

Public GitHub repositories can be a pretty incredible thing. They allow any random Joe to download a project, start contributing edits to it, and submit those changes back to the project owners (a “pull request”).
So if there’s a feature you want a project to have, or a bug in the program you want to be fixed, and no one else is fixing it, and you have the ability to fix it yourself, you can just do it yourself and submit the change for approval.

If you have any questions about GIT or GitHub or anything regarding the programming. I am here to help.
Just ping me on Insta at https://www.instagram.com/codeculturepro/

--

--

Tasadduq Ali
Tasadduq Ali

Written by Tasadduq Ali

I am MERN Stack developer working in UAE Govt to digitize their massive services. I will help you to become highly skilled Coder 😉

No responses yet