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
- Download the latest Version from here
- Follow through the installer
- Verify the installation was successful as mentioned in the Verification section
Homebrew
- Open a cli/terminal and execute
brew install git
- 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
- Configure your Name for git:
git config --global user.name $name
- 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