Installing Git on MacOS

Git is a great open source tool for versioning your projects. In the very least, Git helps to keep track of the development progress, to revert back for a production bug hotfix, and to collaborate with the team. The article covers how to download, install, and set up Git on Mac OS.



Browse to Git - Downloads and click on the latest release download button for your OS on the right side. For example: Download 2.23.0 for Mac.

You will be redirected to the Source Forge website and the download will begin automatically.


For some reason, the official installer package from git-scm is not signed. Please use it at your own risk.

Double-click the DMG file to extract the installer package. Control-click on the package and select Open. Read over the warning and if you choose to proceed, confirm by clicking Open. Follow the instructions to install Git on our machine.


Using Terminal, open the Bash Profile.

nano .bash_profile

Add the following line to the end of the file:

export PATH=/usr/local/git/bin:$PATH

Save and exit: ctrl+o and ctrl+x.

Close Terminal.


Open Terminal and verify that Git has been installed.

git --version

You should see the Git version information printed out.

Close Terminal

Artwork by:

unsplash-logoJazmin Quaynor

Related Articles

Browse related articles

Get our stories delivered

From us to your inbox weekly.

Thank you!

Look for our next article in your mailbox.