Skip to main content

Installing Git and Github on your Mac

This post describes how to install git and github on your mac installation. There are two common ways to install. Both methods are described below. Please note the first way requires homebrew.

Installing with homebrew

To install GIT, just run the below commands and enter your information when requested. Brew update/upgrade is being run to show best practice. Files should always be updated before trying to run commands.

brew update
brew upgrade
brew install git
brew install git-gui

Or if you use Github, you first install the github cask by running the below command into your terminal. Once installed, click "Install command line tool" from the menu.

brew install --cask github

Installing with DMG files

Download the DMG file from the Official Binary installer from Sourceforge.

Alternatively, if you use github, you can download the github desktop DMG file, then install the git command line tools from the app itself.

To install the git command line tools from within the GitHub application, click on the app name "GitHub Desktop", then choose "Install command line tool".