hariprasad
hariprasad

Reputation: 585

How to import projects properly using Git from cloud

How to properly import projects from BitBucket or another cloud repository? I have Eclipse Neon JavaEE. Even if there is Git preinstalled yet and (for my purposes important) Maven too. The imported projects are not real projects.

The straighforward way is:

  1. File -> Import -> Git -> Clone URI (copied from repository i.e. BitBucket)
  2. Fill in username/password if needed
  3. Next

Now I can see this picture (Ubuntu Linux 16.04) Unuseful options for cloning

But no any from this options clone huge of projects properly. To successful clone projects I must in this moment

  1. Cancel process (cloning is in local repository yet)
  2. and manually add projects one after another one into workspace in Git Perspective on expanded Working tree using
  3. Right click on projects -> Import Projects...

Do you know anybody how do this operation better? Next another thing is, that I cannot select more projects, because the option Import Projects... will disappear.

Upvotes: 1

Views: 117

Answers (1)

VonC
VonC

Reputation: 1324937

Another approach is to:

  • clone those repositories manually in command-line (with a Git you install yourself, separately from the one used by Eclipse).
    Clone those repo in any path you want, outside of the Eclipse workspace folder.

  • import the project you want into the Eclipse workspace, by using the local path where the Git repo has just been cloned.

  • once imported, select the Team/share option by right-clicking on the imported project in Eclipse: it should recognized the project is already shared as a Git repo.

That wy, you don't try to do everything with Eclipse in one Go: you separate and keep better control on each step (clone, import, share)

Upvotes: 1

Related Questions