GitHub with Eclipse

5 Aug

Wanted to get GitHub to work with Eclipse. It seems like it should be simple, but it can be confusing. Here are the steps I took.

  • I’m presuming your GitHub project is already setup, you’ll need the URL: git@github.com:naisayer/noqtest.git
  • Install Eclipse
  • Install EGit plugin for Eclipse – Eclipse->Help->Install New Software. I selected all options.

  • Now set up Git as a repository. File -> Import -> Git -> Projects from Git -> Clone. Fill in the details, I tried using ssh as the ‘Protocol’ but it didn’t like it. https worked so I just used this:

Select the branch you want and continue. 

  • At this point you have created a clone of your github project onto your local machine.
  • The next step is to import it as a project.
  • Eclipse->File->Import (this is the same page as before when you did the ‘Clone’, but your local git repository should now be available). Now select the repository you just added and click ‘Next’


  • Now click ‘Import Existing Projects’
  • Now follow the instructions and it should work.
Once you’ve finished you should be able to right-click the project that was created and “Push”.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: