Question

I'm currently working on a groupproject. We're using github to save our code. I have just installed eclipse to work on. I foound to open the project to use import. This has opened the project, except the SRC folder is empty whereas the first SRC folder (the main which was made through github) has several .java files within. Why is this and how do I go about putting them in. I am unable to work on the code through eclipse at the moment due to this. Thank you, much appreciated.

Was it helpful?

Solution

The easiest way would be to:

  • clone manually the GitHub repo (in command line)
  • import the Eclipse project in your Eclipse workpace
  • Then push to the GitHub repo

http://wiki.eclipse.org/File:Egit-0.10-github-pushurl.png

Or you can clone the GitHub project through Egit directly,, following this tutorial.


The OP pokeairguy reports in the comments an alternative solution:

  • create a new project in eclipse like normal.
  • Then drag the contents of the src folder from GitHub into the folder directory within eclipse.
  • Then selecting link in the pop up window.

I think it works by thinking its a new project but saves everyone done under the GitHub folder, for GitHub to work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top