Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Confused about how to create a project within a repository
Confused about how to create a project within a repository [message #1175631] Thu, 07 November 2013 17:15 Go to next message
David M. Karr is currently offline David M. Karr
Messages: 352
Registered: July 2009
Senior Member
I'm new to git, so I'm likely doing something basically wrong.

Using latest Kepler.

We have a mostly empty git repo. I have managed to create a "readme.md" file at the root of the repo. Someone else also put a ".project" file at the root of the repo. We'll call that root project "projroot".

I cloned the repo to "c:/Users/<myid>/git/projroot

I now need to create some subfolders off of the root which are also standalone Eclipse projects. I don't understand what the next step would be. I tried creating a Maven project in my workspace. Would I then "share" it? I tried doing this, but it says the following:

Can not move project <newproject> to target location C:\Users\<myid>\git\<projroot>\<newproject>, as this location overlaps with location C:\Users\<myid>\git\<projroot>, which contains a .project file


I don't know how to proceed.
Re: Confused about how to create a project within a repository [message #1176183 is a reply to message #1175631] Fri, 08 November 2013 02:09 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26014
Registered: July 2009
Senior Member
David,

Comments below.

On 07/11/2013 11:15 PM, David M. Karr wrote:
> I'm new to git, so I'm likely doing something basically wrong.
>
> Using latest Kepler.
>
> We have a mostly empty git repo. I have managed to create a
> "readme.md" file at the root of the repo. Someone else also put a
> ".project" file at the root of the repo. We'll call that root project
> "projroot".
That's probably not ideal. Most of us don't treat the entire repo as a
single project.
>
> I cloned the repo to "c:/Users/<myid>/git/projroot
>
> I now need to create some subfolders off of the root which are also
> standalone Eclipse projects. I don't understand what the next step
> would be. I tried creating a Maven project in my workspace. Would I
> then "share" it? I tried doing this, but it says the following:
>
> Can not move project <newproject> to target location
> C:\Users\<myid>\git\<projroot>\<newproject>, as this location overlaps
> with location C:\Users\<myid>\git\<projroot>, which contains a
> .project file
Try first deleting the "entire repo project" from your workspace
(without the "delete from file system" check box checked), then it
should work. Unless you really need to the entire repo as a single
project, you might want to delete that .project file you put at the root.
>
> I don't know how to proceed.
Previous Topic:Problems with GIT Team Synchronization
Next Topic:GitHub connector for EGit v3
Goto Forum:
  


Current Time: Tue Sep 02 07:44:59 EDT 2014

Powered by FUDForum. Page generated in 0.03940 seconds