Git basics: What is Git?

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Search for a command to run...

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
No comments yet. Be the first to comment.
In this series we'll cover some basic, but very important topics in Git, GitHub and Open source
Now that we have a basic understanding of what Git is. Let's have a look at what GitHub is. I love the following analogy as it makes so much sense (I stole this from the internet). It's the difference between porn and pornhub. What is GitHub? GitHu...
Most of you know me for my consistency, a golden arrow in my blog series. I've written 1000 articles in 1008 days! Almost an article a day, and my honeymoon was the only holiday I ever took. I'm super proud of this achievement; it has been a fantasti...

It's not the first time I'll be talking about community. I think it's an essential aspect of any successful tool. This shows in my previous explorations of Astro, Medusa, and now Vendure as well. All these products thrive in a super open, welcoming, ...

The cool part about Vendure is how easy it is to set up and how abstract each layer is. Basically, we get the following elements: External database Server Worker Admin UI Frontend While this is amazing, it also brings a bit of complexity when it co...

The previous article looked at customizing Vendure on a data and process level. In this article, we'll look at customizing emails, as they are often a big part of a webshop system. We'll be looking at two different layers of customization for customi...

Even though Vendure is a pretty significant project out of the box, in some cases, we might want to go in and modify some elements to work to our specific use case. In this article, I'll take a high-level look at some elements we can customize within...

Statement: Git is the most powerful tool in modern development.
It doesn't matter in what language you develop. If you work on any development, you need Git!
Let's have a look at what Git even is and why it's so important.
This is a series around Git, Git commands, GitHub, and more ❤️
Git is a free open source VCS (Version Control System), which means it's a way to keep track of every change in your software.
There are more VCS in existence like CVS, SVN, and more. However, Git is by far the most used one.
You can even use Git locally on your computer to keep track of changes you make throughout the code. This is a great way to maintain a good overview of certain things that break over time.
But far more important is that it can be distributed, meaning you can host your Git repository on an external system like GitHub, GitLab, etc.
When you do this, you can give other developers, colleagues, teammates the option to develop asynchronous with you and see the changes you have made.
This makes Git a perfect system for developers to collaborate and work together on one codebase.
Within this series, we'll also look at branching, merging, and all those fancy terms which make Git even more powerful!
To conclude the important, let's take a look at how things were before Git.
Chris would have some large project he is maintaining. Then Paul also wanted to work on the system.
Chris would have to put his system on an FTP, USB or transfer it via a link.
Paul would then start working, but during this time, both Chris and Paul might have changed the same file, but in a slightly different way.
By the time they are both done, the files will be shared back again, but which file is the right one now? There should be some combination, right!
Well, that's a massive problem.
With Git, this would have been prevented as Paul would have been able to get the codebase from a distributed Git provider, and Git would have kept track of all changes.
When both would need to merge the code, Git would tell them which lines are conflicting.
A lifesaver, thank you, Git!
Git is super easy to install on any system. I've written down how to install Git for the following platforms:
brew install gitsudo apt-get install gitsudo yum install gitOnce you follow these steps, run the following command to check if Git is installed correctly:
git --version
It should return a specific Git version like: git version 2.33.0.
Git is a free and open-source way to keep track of your code changes. Git is also a way for multiple developers to work on the same code base in an asynchronous manner. Git can be used locally, but the real power lies in a managed solution like GitHub, GitLab, etc.
I hope you learned the importance of Git. Keep an eye out for the next article in this series! 👀
Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter