Searching a git project [message #894543] |
Mon, 09 July 2012 10:41  |
Eclipse User |
|
|
|
I've used Eclipse for many years but egit is new to me. I can clone the relevant remote git repository, but I suspect I've gotten totally crosswise of the distinction between repository and project, and/or I don't know which buttons to press or boxes to check during the cloning process. I've started over from scratch several times and tried many combinations but I'm always left with a situation where my files show up only in the view "Git Repositories", not as a project. Attempts after the cloning to do an import give me messages that I can't import because it's already imported.
In particular, I have no way to search for strings in my files, because I can't find any way to set up a working set for searches through these files. Help?
|
|
|
|
|
|
|
|
|
|
Re: Searching a git project [message #1724808 is a reply to message #895452] |
Fri, 26 February 2016 03:46   |
Eclipse User |
|
|
|
Hi Bruce and all.
I found a similar problem of yours.
I'm working with three PyDev Django projects, I call them A, B and C. They are not new projects, I have to start taking them from a remote Git Server, where there are A.git, B.git and C.git.
So, I start Eclipse, Git perspective, I clone A and B as local, and when I switch to PyDev perspective I see them fine.
But when I do the same operation for C, I see the project in Git perspective, but switching in PyDev perspective I see...nothing !
It isn't fair.
Luckily I found this post and was able to workaround: coming back to Git perspective, using "import projects" as a new project, and all is good.
The strange thing is: why does it work fine for A and B, and fail for C ? I haven't been able till now to figure it out.
The only difference between A and B on one side, and C on the other side, is this: C's name is longer than the other names.
Mah...
|
|
|
Re: Searching a git project [message #1724935 is a reply to message #1724808] |
Sat, 27 February 2016 05:45  |
Eclipse User |
|
|
|
Most Eclipse views only show resources located in an Eclipse project (defined in a .project file sitting in the root of the respective Eclipse project).
If a repository doesn't contain any .project file you can clone it with EGit and do all kinds of git operations on it since it handles all resources
contained in the repository which may contain many Eclipse projects and also some files which are not located in any Eclipse project.
But after cloning you wouldn't see the contained files since you are lacking Eclipse projects.
If you are using Maven you can do "Import existing Maven project" to generate Eclipse projects from the information present
in pom.xml (for that you need to install the Maven integration for Eclipse m2e e.g. from the Eclipse marketplace).
Or you can use the "Import projects" wizard in EGit repositories view to create an Eclipse project.
|
|
|
Powered by
FUDForum. Page generated in 0.66176 seconds