# Step-by-Step Guide: How to Install Git on Mac

Using Homebrew is a popular package manager for macOS, which simplifies the installation process.

1. Open the "Terminal" application. You can find it in the "Utilities" folder within the "Applications" folder, or you can use Spotlight search (Cmd + Space) and type "Terminal".
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1689817604476/2f32b981-117e-4c4a-aa9e-aeb9d6daa676.png align="center")
    
2. Install Homebrew (if you haven't already) by pasting the following command into the Terminal and pressing Enter:
    
    ```bash
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    ```
    
3. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1689817661693/0818b878-70a3-4246-a542-1c2efcb86532.png align="center")
    
    Once Homebrew is installed, use the following command to install Git:
    

```bash
brew install git
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1689817908588/0348080c-9c55-4141-a156-63e7eb4fdda9.png align="center")

Homebrew will handle the installation and dependencies automatically. After the process is complete, Git will be installed on your Mac.

To verify that Git is installed and check its version, run the following command in the Terminal:

```bash
git --version
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1689818042817/a5646f56-05a8-4156-93b5-a0af9061f9b0.png align="center")

That's it! We have installed Git on Mac, and it can be used for version control and collaborating on projects.
