Git: The Most Powerful Version Control System
Git, a very powerful tool for collaboration between developers. So, before we jump to it, let's start with a very important question:
So what is the Version Control?
Version control is software that tracks and manages changes to files over time. using version control you can revisit earlier files or codes that you write before, comparing your branch and another branch for the same project. There is a lot of Version Control System available today like Subversion, CVS, and Mercurial. but in this blog, we just focus on Git.
What is Git Version Control System
Git is known as a version control system, sometimes we call it VCS. Git is very popular among a lot of version control systems. Git found at 2005 by Linus Torvalds.
Why is Version Control very important?
We can use examples of a big company like Facebook or Google with huge code bases, and thousands of files with a lot of developers. In the office, they are working parallel and creating new branches and making very many changes to their code every day. How they can manage the code and track every change and combine them under one product? How do they undo the changes if the code does not work properly? That is why Git is very helpful for developers that work on a team.
What Git can do for us as Software Engineers?
Track changes across multiple files
Compare the version of a project
In emergency cases, we can look back to the old version of the project
Revert to a previous version
Collaborate and share changes with other developers
Combine Changes
Who has to use Git?
Engineers and Coders
Tech-Adjacent Roles
Governments
A student that works on their thesis or homework
Content Creator
Writers
Anyone that needs a track record for their work
What is the difference between Git and Github?
Both are between Git and Github very similar, but actually, they are not the same thing:
Git is the Version Control Software that runs locally on your machine. You don’t have to register for your account, also you don’t need the internet to use it. You can use Git without interacting with Github.
GitHub is a web service that hosts Git repositories in the cloud and makes it easier to collaborate with other people. You have to sign up for your account to use it. The simple way is Github is the online place to share your work with others