GIT Installation on macOS

Niño Villaflor
Mac O’Clock
Published in
2 min readJul 6, 2020


Photo by Yancy Min on Unsplash

Git is a free, open-source, and most widely used version control system designed to handle projects from small to very large projects with speed and efficiency.

It can be used to track changes in your project source code during your software development process.

Start by checking pre-installed git on your local machine.
Keep in mind that you only need to install git at once.

$ git --version
Local Machine with pre-installed git

The easiest way to install Git on a Mac is via the stand-alone installer:

  1. Download the latest Git for Mac installer.
  2. Follow the prompts to install Git.
  3. Configure your git username and email using the following commands:
$ git config --global "John Doe" 
$ git config --global ""

4. Congratulations! You’ve just installed git software on your local machine.
Check your git configuration using this command.

$ git config --list

Create your first git repository using the following steps:

Git repository is a virtual storage of your project that allows you to create and save versions of your source code.

  1. Using your macOS terminal, create/go to your project folder.
$ cd /path/to/your/project

2. Initialized your project with git using the following command.

$ git init

3. Great job! You’ve just created your first git repository.
Take your skills to the next level by exploring Github.
Let’s collaborate soon!