Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
97 lines (68 sloc) 5.52 KB
layout title description
Set Up Git
A quick guide to help you get started with Git

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.

This is the guide for setting up git in Windows. There are also guides for OSX and Linux.

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 for Windows.

    Use the default options for each step.

    Welcome page Information Select destination location Select start menu folder Select components Adjusting your PATH environment Configuring the line ending conversions Installing Installation complete

    Do not use PuTTY if you are given the option. GitHub only provides support for openssh.

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 Git Bash (not the Windows command line), found in the start menu in the git.

Open the terminal

Need a quick lesson about Git Bash?

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 was installed with Git called Git Bash.


      $ 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.


      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 Git Bash.

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 Git Bash don’t have any output. Don’t worry, if there is ever a problem with your code, Git Bash will let you know.

Good to know: For security reasons, Git Bash 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
Jump to Line
Something went wrong with that request. Please try again.