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.
Add the following line to the end of the file:
Save and exit: ctrl+o and ctrl+x.
Open Terminal and verify that Git has been installed.
You should see the Git version information printed out.
Browse related articles