Before coming to Git and GitHub, I want you to assume a scenario where many people are working on some project and suppose they don't use Git, so they have to share their code with each other by some or other means. They can use several ways like transferring it over mail or compressing it and then sending it in the USB drive. So overall, they have to do a lot more work than required. This happens because they are not aware of Git and GitHub.
So, Git and GitHub are generally used hand to hand. The former one is used for version control, and the latter is used to host the code online where each team member can access it.
What is Git?In layman's terms, Git is a distributed version control system created by Linus Torvalds in 2005.
You might be wondering what this version control is? Don't worry, folks, I've got you covered. Version control or source control is a practice of managing and tracking the changes to the program code. So, it's like a tracker that tracks every change in your code. You can commit the changes and can revert to the old changes as well.
Let's talk about GitHub now.
What is GitHub?- GitHub is a code hosting service that is based on the Git version control system. So, GitHub is a place where developers store their projects and can network with like-minded people. It's one of the largest communities for devs.
- It acts as a safe house for your application code.
There's a difference between Git and GitHub, but generally we use them together. In a nutshell, we can say, Git is a software that tracks the code, and GitHub is a website where you can put your code.
There are several other code hosting services like GitHub such as,
All these code hosting services use the Git version control system.
So, that's all for this article. I'll catch you in the next one.