Skip to content

Instantly share code, notes, and snippets.

@abranhe
Created April 30, 2019 05:49
Show Gist options
  • Save abranhe/9a6733a5fc261337a9d61fe563a0076b to your computer and use it in GitHub Desktop.
Save abranhe/9a6733a5fc261337a9d61fe563a0076b to your computer and use it in GitHub Desktop.
Install Git on Mac

Installing Git on a Mac

Open a terminal window.

Step 1 – Install Homebrew

Homebrew […] simplifies the installation of software on the Mac OS X operating system.

Homebrew – Wikipedia

Copy & paste the following into the terminal window and hit Return.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor

You will be offered to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.

Step 2 – Install Git

Copy & paste the following into the terminal window and hit Return.

brew install git

You can use Git now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment