paint-brush
Install Git on Macby@GalarnykMichael
66,637 reads
66,637 reads

Install Git on Mac

by Michael GalarnykApril 6th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Before starting, I should note that this is almost directly taken from the <a href="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git" target="_blank">Official Git Documentation</a>. The difference is that I am using GIFs to show the two main ways to install <a href="https://hackernoon.com/tagged/git" target="_blank">Git</a> on <a href="https://hackernoon.com/tagged/mac" target="_blank">Mac</a>.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Install Git on Mac
Michael Galarnyk HackerNoon profile picture

Before starting, I should note that this is almost directly taken from the Official Git Documentation. The difference is that I am using GIFs to show the two main ways to install Git on Mac.

Option 1

The easiest way to install Git is to install the Xcode Command Line Tools which comes with Git among other things. On Mavericks (10.9) or above you can do this simply by trying to run the git command from the Terminal.

  1. Open a Terminal on your Mac. Now, type the following command into your Terminal.

git --version

If you don’t have git installed already, it will prompt you to install it.

Read and agree to the Command Line Tools License Agreement and you are ready to use Git!

Option 2

  1. Download Git here.

2. Once your download is finished, open the file and go through the installation process.

3. Done!

Learning Git

If you want to learn how to use Git, I suggest you check out either Corey Schafer’s YouTube videos on Git or DataCamp’s free course Introduction to Git for Data Science. If you any questions or thoughts on the tutorial, feel free to reach out in the comments below or through Twitter.