Skip to content
Sep 28 2009 / alecmce

Windows, Eclipse and GitHub

Setting up for using GitHub on my mac was a breeze. Setting up at work on Windows was a pain. I think that these steps will satisfactorily setup Eclipse to work with GitHub.

  1. If you haven’t got a GitHub account, create one;
  2. Install eGit in Eclipse;
  3. Download and install msysgit from Google Code;
  4. Create your own ssh key using
    $ ssh-keygen -C "[email protected]" -t rsa
    
    • Personally I’d use the “Use Git Bash only” option;
  5. This will generate your key to (typically):
    c:\Documents and Settings\[yourname]\.ssh

    Change the folder from .ssh to ssh, otherwise EGit will look in the wrong place;

  6. In Eclipse, “Import…” a new project and choose “Git Repository”.
  7. Copy the Public Clone URL from the GitHub repository that you want to clone into the Location URI.