How to Install GIT On Mac
Git is the backbone of modern software development, enabling developers to track changes, manage code, and collaborate effortlessly. It is a version control system that keeps teams in sync, prevents code conflicts, and ensures every contribution fits seamlessly into the bigger picture. Whether you're building solo projects or collaborating with a team, Git is your gateway to smoother, smarter workflows.
In this blog post, we’ll demystify the installation process with clear, step-by-step instructions tailored to macOS. From choosing the best method—like Homebrew, Xcode, or direct download.
Installing Git on macOS: 3 Methods
You can download Git on macOS by using five different ways, so here are the commands you can run in the terminal to install it:
Install Git on macOS from the App Store
Some users may prefer installing Git via the Mac App Store. Here’s how:
Step 1: Browse for Official App store
- Open Mac App Store from any web browser and select your region.

Official Website
Step 2: Look up for “GIT” and click to download
- Search for “Git”.Select an app (e.g., GitUp or other Git GUI tools) that includes Git and follow the installation instructions.

Click to download
Step 3: Verify the Extraction
- Verify the installation by running:
git --version

Verify
Install GIT On Mac using Homebrew
Step 1: Get Homebrew in your macOS
- If you don't have Homebrew, then type the following command in the terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Step 2: Install Brew
- We recommend you install Homebrew first and then run the below command to download Git with no errors:
brew install git

Step 3: Verify the Installation
- Once the installation is complete, verify the installation:
git --version

Install Git on Mac using Xcode Command Line Tools
macOS comes with Xcode Command Line Tools, which includes Git and other development utilities. Here's how to install Git via Xcode:
Step 1: Launch Terminal & Type the following command
- Launch Terminal by pressing CMD+Space and then type Terminal to start.

- Now, type the following command:
xcode-select --install
Step 2: Continue with the Installation
- This will prompt you to install the Command Line Tools. Click Install to continue. Once the installations complete, verify Git by typing:
git --version

- If Git is installed correctly, you will see the version number.
Conclusion
Git is an essential tool for every developer, streamlining workflows, enhancing collaboration, and ensuring version control throughout the development process. Whether you choose to install Git via the App Store, Homebrew, or Xcode Command Line Tools, the process on macOS is simple and straightforward. Each method provides a reliable way to get Git up and running, allowing you to take full advantage of its capabilities. Once installed, you’ll be equipped to efficiently manage your code, collaborate with teams, and enhance your overall development experience.