Open Source Comes to Campus/Curriculum/Laptop setup/OSX git: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Shauna
No edit summary
imported>Shauna
No edit summary
Line 18: Line 18:


* Go through this [http://code.google.com/p/git-osx-installer/downloads/list long list of options] and pick the one best-suited to your computer. If you're not sure, ask an instructor.
* Go through this [http://code.google.com/p/git-osx-installer/downloads/list long list of options] and pick the one best-suited to your computer. If you're not sure, ask an instructor.

== Set your user name and email ==

You'll also want to tell git your name and email address. To do this, type:

git config --global user.name "your-user-name"
git config --global user.email "your email"

You can test that they've successfully been set by typing:

git config --global user.name "your-user-name"
git config --global user.email



== Back to laptop setup ==
== Back to laptop setup ==

Revision as of 03:53, 28 September 2013

Git sometimes comes pre-installed on Mac. To see if this is true for your machine, type in a terminal:

   git --version

If this returns a version number, such as:

   git version 1.7.9.5

Great, you have git installed! If it returns some kind of error, such as "No command 'git' found", go ahead and install it.

The install depends on your version of Mac OS

For Mac OS Snow Leopard (10.6) or Lion (10.7):

For other versions of Mac OS:

  • Go through this long list of options and pick the one best-suited to your computer. If you're not sure, ask an instructor.

Set your user name and email

You'll also want to tell git your name and email address. To do this, type:

   git config --global user.name "your-user-name"
   git config --global user.email "your email"

You can test that they've successfully been set by typing:

   git config --global user.name "your-user-name"
   git config --global user.email


Back to laptop setup

« Back to laptop setup