Starting to work with Git will have you install Git first. You can get it here. After Git is installed you will have to go open your terminal and navigate to your project folder where your first code might already be, or not yet that’s ok too. When you’re in your project folder with your terminal, type ‘git init’ to make this project version controlled with Git. Tada! You are now using Git. Because the terminal is a pretty ugly place with a bad overview I prefer using the more graphical interface of a Git GUI.
A Git GUI is an extra program to download and possibly buy (there are free options available too) and if you don’t want to do that, the terminal is a fine option too. I only use the terminal if I have an issue with my GUI, so I will not get into that too deep right now and instead quickly mention my 2 most used GUIs.
The first one I’ve ever used is Sourcetree by Atlassian. It looks a bit outdated, but it has a nice graph and lists all the recent commits, making it easy to search through. It is free to download and use, which is nice to start with. I have noticed that if I have more projects to keep track of, Sourcetree gets slower and slower.
My favourite is the cute GitKraken, they have this super cute squid animation (totally irrelevant for functionality but I still love it) and their GUI looks so much sleeker and nicer than Sourcetree’s. They have a free version with which you can do all the basics as long as your project is set to public. We will get into public and private projects in the next post, for now this is not yet important.
You can download Sourcetree here and GitKraken here.
Disclaimer: this GitKraken link is a referral link, if you enjoy GitKraken so much that you upgrade it to a paid account in the future (at no extra costs to you), I might get a sticker. Or if more people do this, possibly a T-shirt. Woop!
After you install either of these, you can open your project folder with it, and it should recognize the .git folder that was set up in your project by the ‘git init’ command. You are now set to work with it. For this article we will use GitKraken for reference, it is free and super easy to set up.