DEV Community

Cover image for What is Git and GitHub?
Gm Aravind
Gm Aravind

Posted on

What is Git and GitHub?

Okay, let’s start with Git.

Git is a software that is used to track changes in a project. Git Is a Version Control System. Now, What is a Version Control System?

Let’s say that you came up with a project idea and you started coding it. Now, you started building it, and your project’s basic features are working, so you tried to add more features. Well, in this process, let’s say you broke the code and now it suddenly stopped working, and now you wish you could go back in time to when it was working. What will you do now?

Well Don’t worry, this is the exact problem Git is solving. Git is like a History Book, where it stores all the changes that you made from time to time in your project and brings it back if you need it. But there are a few conditions, like you have to pass a command in the terminal, so that it stores the changes.

Best Resources to Learn Git will be listed at the end of this blog.

Now, let’s see what GitHub is and why it is even used in the first place.

GitHub is a company that provides services.

GitHub is a company that provides services. Okay, services like what?

They provide Cloud-based hosting services where you can collaborate with your friends.

Back up your code online.

Build your project and showcase it to anyone.

Let’s Understand Why do we even need GitHub in the first place.

Let’s say that you and your friend came up with a project idea, and you both live in different locations. Now, to build that project, you both need to work together and write code.

But you both live in different locations. How can you see your friend’s code and vice versa?

GitHub is an online service where you can store your code in a repository. What is a repository? It is like a database where you store your project and its files. GitHub is used when we want to work with others on some projects. They provide free storage for your project, and you can also host your project there using GitHub Pages for a static website.

Git vs GitHub (Quick Summary)

Git is the Tool and GitHub is the platform.

Resources to Learn Git

These are a few resources that will help you in your learning. But Remember the most practical way you will learn the Git Commands and understand more when you use it in your projects.

Top comments (0)