← Home

You should learn Git

18 July, 2024

You should learn Git, especially if you're a programmer. Git breaks down the biggest barriers to improvement, letting you realize your untapped potential as a developer.

Git is a VCS (Version Control Software) that maintains a history of changes made to your projects. These changes can be reverted, altered, and reviewed at any time. This is Git at its simplest — a lightweight and reliable record of your development progress. Oh yeah, and Git is totally free.

Combined with services like GitHub, you can even create cloud-based copies of your work that you can freely update, download, and share. GitHub safely hosts your projects in case you drop your hard drive in the toilet. Oh yeah, and GitHub is totally free.

You can read more about GitHub in my other post, "You should use GitHub"!

Whenever you make changes to a project, Git allows you to create a new commit to record said changes. Git automatically maintains a timeline of all commits, which you can view at any time.

image of a Git log

Above: a segment of the commit history for my Rust project, arcstat.

I'm sure you know the dread of accidentally breaking your entire project. With Git, you don't have to worry anymore: commits allow you to restore project progress at will. This simple checkpoint system means no more annoying copy-paste backups of your entire codebase. Git makes it so easy.

That's really Git in a nutshell! Continuously saving intermediate progress means you can start taking risks — and taking risks is the essence of self-improvement. Git will help you overcome the fear of failure and losing your valuable work. Git is a witness to your progress so that you can work looking forwards — never backwards.

Getting started

Git is available for all platforms, and can be used in the command line or through a graphical interface. You can download Git here.

I must recommend learning Git in the command line. The command line isn't as difficult as it seems, and you only need basic commands to get started with Git. If you're unfamiliar with command line fundamentals, I recommend following Ubuntu's Bash shell tutorial.

Windows users can either install Microsoft's WSL (recommended) and/or opt for the Git Bash when installing Git. I wouldn't recommend the native Windows command line; Linux is more ergonomic and fun.

Besides, Git's GUI is so ugly and clunky that I wouldn't wish it on anyone.

Resources

Start with Pro Git, a free e-book available for download on the official Git site. All my homies love Pro Git.

Software