How to create an Eclipse project using an EGit clone

After spending a decade with SVN, I finally decided on Git. I installed Git, Gitolite and GitLab on the server and successfully added the code to my local repository, committed, cloned the repositories and pushed the code back into the repository. So far, so good. Now included in EGit ...

I cloned the repository using the Git Repository Exploring view using the following syntax for the path:

ssh://dexter:vaultanalyser.git

(In GitLab, repositories are called projects, so I assume that I have to have one repository for the Eclipse project? Instead of a repository of one parent SVN type that contains several projects?)

Imports the repository into:

/Users/mattpainter/git/vaultanalyser

I expected this step to automatically create an Eclipse project for me with all the source , but it is not. I tried fudging the target directory so that it is in my workspace, but this does not work either.

How to get a cloned source available in Eclipse? This site implies that if you create a project with the same name as the repository, it all magically works, but it doesn’t (yes, I know that the article is about Github and not GitLab, but I decided that they were close enough to the task at hand).

Then I tried to create a project in Eclipse and share it - but then the whole project will appear as a subfolder in the repository. If the repositories are really similar to projects, this is not exactly what I want.

StackOverflow, , , , , .

+3
3

GitLab , , Eclipse?

, GitLab Eclipse.
SVN, Eclipse eclipse, .

, , Eclipse, , ( Eclipse), ( Eclipse + EGit - confused ").
, eclipse, ( Eclipse), (.project .classpath) Git.
Egit . Egit: "Eclipse + EGit: .


OP nullpainter :

.git/objects .
chmod git:git -R *

.

+3

@VonC, EGit Eclipse:

  • 'Clone a Git repository' EGit, . git, - .

  • Eclipse. Java, , . " " , 1. .

  • Team > Share Project... . Git " ".

Eclipse dot Git Eclipse.

( .git/objects - chmod git:git -R * )

+3

, . , git. EGit , , . Git , .

0
source

All Articles