If you are unsure, go ahead with the default selection. Select the components that you want to install. Select the directory you want Git to be installed in or use the default location: When you see an installation prompt, click on Yes: To update Homebrew, enter the following command in your terminal: brew updateįinally, to install Git run: brew install gitĭouble click on a recent version of Git to download it. Therefore, it’s a good practice to update it.
The Homebrew version you just installed may not be the most recent stable build. You should see an installation success message once the installation is complete. Once you follow the prompts and agree to them, at the end of the process you have a working version of Git.Įxecute the following command on your Mac terminal: /bin/bash -c '$(curl -fsSL )' These developer tools surrounding Xcode and Xcode app development utilities are available from Apple. If Git isn’t installed on your computer, the terminal prompts you with the following message:Ĭlick on Install to install the developer tools required Check if Git is already installedĬheck if Git is already installed on your Mac using: git -version
You can install Git using Homebrew, MacPorts, or by downloading the Git installer package. There are different ways to install Git on Mac OSX.