When you learn to code, you’ll probably also want to learn and install Git for version control.
There are several ways to install Git on Mac. The most obvious one is to go to the Git website. And downloading and installing the latest version from there. But this is probably the most tedious version.
Another option for Mac is to install Git via Xcode. Which is the primary tool to use if you want to develop apps for iOS. The problem I have with Xcode is that it takes up a lot of space on your computer. If your plan is to develop iOS apps, that’s fine, but if you’re not planning to really use Xcode much, it’s just a waste of space. Especially since Xcode has a tendency to increase its disk space usage yearly.
There is, however, a third option: installing Git with Homebrew on the Terminal.
If you have Homebrew installed already, all you need to do is open up Terminal and type:
brew install git
Hit Enter and give Terminal a few minutes to install Git (I think it took maybe a minute or two on my Macbook Pro).
Terminal should let you know when the installation is complete. But if you want to double-check, you can always ask Terminal to show you which version of Git is installed on your computer with the following command:
If you don’t know what Homebrew is, I’ve talked about it in a previous post where I also included instructions on how to install Homebrew.