Skip to main content

Git on Mac OS

caution

For macOS, you need to install Homebrew before following the next steps.

Homebrew Installation

  • Open a terminal.
  • Execute the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)

Once Homebrew is installed, you can proceed to the next section.

Git Installation

brew install git

Verify Git Installation

After installation, check that Git is correctly installed by running:

git --version

You should see the installed Git version, e.g., git version 2.48.1.