--- layout: default title: Set Up Git (OSX) description: A quick guide to help you get started with Git categories: mac --- If you’ve found yourself on this page, we’re assuming you’re brand new to Git and GitHub. This guide will walk you through the basics and explain a little bit about how everything works along the way. ##First: Download and Install Git At the heart of GitHub is an open source version control system (VCS) called Git*. Created by the same dudes that created Linux, Git is responsible for everything GitHub related that happens locally on your computer. _*If you don’t already know what Git is, take a crash course._ 1. Download and install the latest version of Git. __*Note*__ Don’t worry that you don’t see an icon when it’s done. It’s not that kind of application. ##Next: Set Up SSH Keys We use SSH keys to establish a secure connection between your computer and GitHub. Setting them up is fairly easy, but does involve a number of steps. To make sure you generate a brand new key, you need to check if one already exists. First, you need to open Terminal.app, usually found at /Applications/Utilities. Open the terminal

Need a quick lesson about Terminal?

Code blocks like those on this page are part of a scripting language called Bash. To use Bash scripts, we need to use an application that comes with your Mac called Terminal.

Input

			$ echo 'This is input text'This tooltip tells you what's going on.
		

A line that begins with the dollar sign ($) indicates a line of Bash script you need to type. To enter it, type the text that follows the $, hitting the return key at the end of each line. You can hover your mouse over each line for an explanation of what the script is doing.

Output

			This is output text.
		

A line that does not begin with a $ is output text that is intended to give you information or tell you what to do next. We’ve colored output text green in these bootcamp tutorials.

User Specific Input

			$ echo 'username'Outputs the text in the quotation marks.
		

Areas of yellow text represent your own personal info, repos, etc. If it is part of an input ($) line, you should replace it with your own info when you type it. If it is part of output text, it is just for your reference. It will automatically show your own info in Terminal.

Good to know: There will be times when you type code, hit return, and all you are given is another prompt. Some actions that you execute in Terminal don’t have any output. Don’t worry, if there is ever a problem with your code, Terminal will let you know.

Good to know: For security reasons, Terminal will not display what you type when entering passwords. Just type your password and hit the return key.

{% include ssh_setup.markdown %} ##Then: Set Up Your Info Now that you have Git set up and your SSH keys entered into GitHub, it’s time to configure your personal info. {% include email_setup.markdown %} ##Lastly: Celebrate Congratulations, you now have Git and GitHub all set up! What do you want to do next?
  1. Set Up Git
  2. Create A Repository
  3. Fork A Repository
  4. Be Social