Setting Up Git - OSX & Linux

Last Updated October 2014

Git is an incredibly powerful version control system designed to make development and collaboration much easier. This doc covers setting up Git in Mac OS X. After reading it, you will be familiar with:

  • Installing & setting up Git in Mac OSX & Linux

There is also a doc for setting up git in Windows.


If you're reading this doc, chances are you're new to Git. After you get everything setup, here's a few educational resources that will help you get started:

Getting Started - Git Basics
"Try Git" Tutorial by Code School
The Basics of Using Git with Pagoda Box

Download and Install Git

Download and install the latest version of Git.

Setup Git

Now that Git is installed, you'll want to configure your Git username and email. This is what's used to track commit histories and authors for your repos.

Username

By telling Git your username, it can properly indentify you as the author of the commits you make. To set your Username, run the following in Terminal:

Set Your Git Username Terminal

  $ git config --global user.name "your name here"

Email

By telling Git your email, it can properly indentify you as the author of the commits you make and tie the appropriate Gravatar to the commits. To set your Email, run the following in Terminal:

Set Your Git Email Terminal

  $ git config --global user.email "your_email@email.com"

Setup Your SSH Key

Once Git is installed, you need to set up your SSH key.

If you have any questions, suggestions, or corrections, let us know.