Open Source Comes to Campus/Curriculum/Laptop setup/OSX git

From OpenHatch wiki
Jump to navigation Jump to search

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

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

Downloading git if needed[edit]

For other versions of Mac OS:

Set your user name and email[edit]

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

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

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

   git config --global
   git config --global

Sign up for a Github account[edit]

You can do so at this link.

Back to laptop setup[edit]

« Back to laptop setup