Other Pages

Expand All

Install Git OS X

Step 1: Open Terminal

Look for Terminal.app inside Applications -> Utilities, or use Spotlight search (Command + Space Bar) to find it.

Add it to your dock; you'll be using it a lot. (To add it to the dock, click and hold the dock icon once Terminal is open. Select options -> keep in dock.)

Arrange your windows so that Terminal and your web browser are next to each other. You will want to read from your browser and type into your terminal at the same time.

Step 2: Install A Compiler (XCode or GCC)

Step 3: Install Homebrew

Type this in the terminal:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

You may have to press 'ENTER' when prompted and type in your password.

If that doesn't work, visit http://docs.brew.sh/Installation.html and follow the instructions there.

Verify

Type this in the terminal:
brew -v
Approximate expected result:
Homebrew 1.1.13-19-g55c02ae77
Homebrew/homebrew-core (git revision 4075; last commit 2017-04-18)
The greyed-out text may differ and is not important.

Step 4: Install Git

Next we'll install Git, the most popular version control system in the Ruby world:

Type this in the terminal:
git --version
Approximate expected result:
git version 2.x.x
The greyed-out text may differ and is not important.

If you see that output, you have Git. Move on to the next step.

Otherwise, type this in the terminal:
brew install git

Verify

Type this in the terminal:
git --version
Approximate expected result:
git version 2.x.x
The greyed-out text may differ and is not important.

Verify successful installation

Type this in the terminal:
git --version
Approximate expected result:
git version 2.x.x
The greyed-out text may differ and is not important.

Next Step: