Setting up Git and GitHub for development on Windows



You need the following downloads in order to work with Git and GitHub on Windows:
- The git command line client.
- Putty -- a ssh/telnet client for Windows (since GitHub uses ssh for Git communications).

Installing git

The msysgit client is a monolithic install of the command line Git, a Git GUI and a bunch of git-related tools.

Installing Git is fairly straightforward--run the installer--there are two options you should change:

Make sure you add Git to the path (option #2 or #3, your preference):
Choose the second or third option

Select "Checkout-as-is, commit-as-is"
Choose the second or third option

Video Walkthrough:

Installing putty

Putty is an SSH client for Windows. Git can use this to communicate securely with Github.

Installing is fairly easy, just a couple of steps after installation that we'll need to manually handle. After installing the app, you'll want to modify the PATH and set the GIT_SSH environment variable so that Git will know to use it.

To ensure that putty is in the path, you'll need to run the following commands from an elevated command prompt:

Run these commands in an Elevated (Administrator) command Window


[System.Environment]::SetEnvironmentVariable("PATH", $Env:Path + ";" + "c:\program files (x86)\PuTTY", "Machine")

[System.Environment]::SetEnvironmentVariable("GIT_SSH","plink", "Machine")

Video Walkthrough:

Setup account with GitHub

You'll need an account with GitHub if you want to be able to commit changes to CoApp.

You can create a free GitHub account at

Generating a public/private key pair for GitHub

Video Walkthrough:

One last note about UAC, Pageant & Git

If you have UAC turned on (which it is by default on Windows Vista and Windows 7) if you run Git from an a elevated command prompt, you need to make sure that pageant is elevated as well, otherwise plink and Git can't talk to it to get your private key.