Install Git on Mac

Problem

You want to Install Git on Mac? You need to recreate your development environment by installing Git on your Mac?

Preface

If you installed XCode or it´s cli tools you may have git already installed. You can test it by opening a cli and execute git --version . The output should something look like this: git version 2.25.0

If it´s not installed already, continue with the Solution.

Solution

Git for Mac Installer

  1. Download the latest Version from here
  2. Follow through the installer
  3. Verify the installation was successful as mentioned in the Verification section

Homebrew

  1. Open a cli/terminal and execute brew install git
  2. Verify the installation was successful as mentioned in the Verification section

Verification

After the successful installation open a cli and execute git --version. The output should something look like this: git version 2.25.0

Configuration

  1. Configure your Name for git: git config --global user.name $name
  2. Configure your Email for git: git config --global user.email $email

Best,

Frank

Sources:

https://www.atlassian.com/git/tutorials/install-git#mac-os-x

Leave a Reply