Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » 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 22:15 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 802
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 07:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
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.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Problems with GIT Team Synchronization
Next Topic:GitHub connector for EGit v3
Goto Forum:
  


Current Time: Fri Apr 26 14:57:25 GMT 2024

Powered by FUDForum. Page generated in 0.04300 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top