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.
- Open a Terminal on your Mac. Now, type the following command into your Terminal.
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!
- Download Git here.
2. Once your download is finished, open the file and go through the installation process.
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.