DEV Community

Cover image for What is Git and why you need it.
The CTO General πŸ¦…
The CTO General πŸ¦…

Posted on • Edited on

What is Git and why you need it.

As a young developer, I was always confused about what git was, and how it relates to Version Control System(VCS).
Talking of Git, we've all heard it's a Version control System.... blah blah blah and the likes of it. it even gets more confusing using terminologies like, commits, push, branch, etc. to explain what exactly Git was.

In this article, I will work you through what Git is, and why you need it as a developer. But before then let's know what a Version Control System(VCS) is.
For easy understanding, I always like to think of it as a Ctrl+Z(undo), Yeahhh.

Imagine you working on a .doc file or any text file, what do you do when you want to revert to the previous version of the file. You undo your (Ctrl+Z) changes or make a backspace, right?
Well, Version Control works Somewhat similar. A Version Control System helps you keep track of every modification(changes) made to any of your source code. it also helps you revert (undo these changes) made to your source code in case a bug or issue was introduced to the code during development.

When collaborating with other developers on a project, sharing of codes and tracking other developer's changes could be made easier with a Version Control System.

Now, What Exactly is Git?
As we have defined and known what a Version Control System is.

What is Git?

There are lots of Version Control Technologies and Tools used by developers to track their changes and collaborate with other developers. E.g Git, Subversions, Mercurial, Aws CodeCommit, etc.
Git is the most widely used open-source distributed Version Control Tools designed to handle and manage Changes from small to very large projects.

Now as most young developers do, Oops, I meant, as I did. Don't confuse Git with Github, as they are two different things. Check out my article on Git and Github(to understand better).

Why use Git?

Every developer should learn how to use Git or any Version Control Tool in other to conveniently revert to the previous file version when there is a bug or unwanted feature in the source code, most especially when collaborating with other developers, not within the same vicinity.

To reduce the risk of codes being broken, Git can be in handy when having different developers working on different features on a project.

Finally, Git can only be used if it's installed on your computer. Check out my article on How to install Git with ease.

Top comments (0)