Skip to main content



      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 17:15 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 22 15:17:15 EDT 2025

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

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

Back to the top