Git Vs GitHub: What’s the Difference?

Rmag Breaking News

Imagine that you have an application or a project folder. And you want to collaborate with other people on that project.

Or imagine that you have your application, and you uploaded some new code into your application. You added a new feature for example.

And now your application breaks.

Let’s say your application is not running anymore like it was before.

And you are like “Hey. I would really love it if I could go back in the past in that code base in which my application was running.”

“I wish there was some sort of way to you know take a picture of that codebase, and whenever I want that picture like that codebase as it was, during that time in the past, I could have that.”

So, basically saving the history of your project.

Like, let’s say, 1st July, your project looked like this. 2nd July, your project looked like this. 3rd July your project looked like this. Like some additional files, code changes etc.

You want to go back to what your project looked like on 1st July. You can do that.

You want to go back to what your project looked like on 2nd July, you can do that.

That is a use case that you can think of.

Another one can be, you are contributing to open source for example. Or, you and your friends are contributing to one project.

Now, imagine that, 100 people are contributing to just one folder. That is what happens to open source projects as well. There is one main folder, and so many people from around the world are contribute to that project.

Now, you might be wondering, “how do these people share their code?”

If you want to share a code in some open source project, you want to add your own functionality or share some changes you made, how can you do that?

We can do that through Git and GitHub. So Git and GitHub allows us to maintain this history of the project at what particular point of time, which person made which change, and where in the project.

Git helps us in doing that.

What is GitHub?

GitHub is a platform, an online website, that allows us to host our Git repositories.

Now, you might be wondering, what is a repository? We will look at that shortly.

Repository is just a folder, where all the changes are saved. Do not worry if you do not know about it. We will cover it in detail shortly.

You can think of it of somewhat like this. So, you have the email service right? So, you use email, and you have the email technology behind it and there is the server and everything happening behind the backend so that you can relate to with Git.

Now, what are the many platforms that are providing you sort of an interface to use this service to send emails to people around the world, to have like the nice GUI that you can see all the emails and everything?

Gmail, Outlook, Yahoo Mail and so on that you can relate with GitHub or other platforms that allow you to do this same thing. Like Bitbucket, GitLab, for example.

So Git is like the version control system like the tech, and there are so many other online platforms that allows us to host these folders or repositories or our projects online so that other people from around the world can share, look, contribute. And these are known as GitHub, Bitbucket and GitLab.

Happy Coding!
Karl 🤛

P.S. I have a JavaScript eBook(Zero to Mastery) to help you become job-ready by understanding how JavaScript really works behind the scenes. Get it here.

Leave a Reply

Your email address will not be published. Required fields are marked *