Git on Board! A Tutorial
Oct 04, 2026
This is a tutorial on how to use git, specifically dedicated to those of you who are new to programming and want to learn how to use version control. I have been requested to make a tutorial on how to use git, and, though I am not an expert by any means, I will teach what I know to those who would like some help on the matter. If you got here from the personal web and not by requesting this, you probably already know everything that I am going to say here.
What is Git?
First of all, I need to explain what version control is. Version control, as said by wikipedia, is as follows:
the software engineering practice of controlling, organizing, and tracking different versions in history of computer files– primarily source code text files, but generally any type of file.
This is a very important aspect of coding; in fact, I would argue it is one of the most important aspects of coding. The basic idea is not only to allow collaboration on code but also create accountability on said code. Everyone's changes are documented by the person who made them, and any changes can be reverted with one command. Usually.
Installing Git
The first step to version control is to install software that allows for version control. In our case, I will be using git, as that is what I know how to use. If you're on linux, this is easy. Git is on just about every possible distrobution's package manager you can think of, so it is no trouble getting it installed with a quick google search. In my case, I am using Arch by the way, so I would use the command sudo pacman -S git.
If you are on other operating systems, however, simply go to Git's Website and navigate to the Install page, where you will follow the instructions based on your operating system. With that out of the way, we will get into working with git!
Github
For the purposes of this, I will explain using github, simply because it is the most popular. If you do not already have an account with Github, go to Github and make an account, or sign in if you already have one. There you can use the plus sign at the top bar to make a new repository. Simply click the plus sign, and then "New Repository." There you can give the repo a name and enter some information about it. If you have existing code you would like to add to the repo, try not to add any extra files; you will add them later. Then submit it, and you've created a repository!