Punter Vicky
Punter Vicky

Reputation: 17042

Fetch all projects under a GITHUB repo

I use a GITHUB which has a url similar to this - https://github.mycompany.com/orgname/project-name.git. The org contains a number of projects (each of which I assume are repo since it ends with .git). I am able to check out each project individually using eclipse. However is there a way to checkout all the projects under the orgname?

Upvotes: 2

Views: 415

Answers (3)

nitind
nitind

Reputation: 20023

Typically a repository is either one big project, or contains a number of projects, not other repositories.

Once you've cloned the repository, use the Git Repositories View to find and import the Eclipse projects.

Upvotes: 1

Jonah Graham
Jonah Graham

Reputation: 7980

There are a number of technologies in Eclipse that may be useful to you here, however all of them have a one time overhead to set some meta data about which collection of git repos you want to clone.

Eclipse Project Sets

  1. Import all the projects from all the git repos you have. (manually)
  2. Choose File menu | Export | Team | Team Project Set
  3. Follow the wizard and share the .psf file with the team.

Eclipse Oomph

A more complete solution that sets every part of the environment, e.g. projects and location, workspace settings, API Baselines, installed plug-ins, etc. See Eclipse Oomph Authoring for more information.

Other Options

There are many many other options for managing multiple git repos. It is a difficult decision on where to split git repos, if you have one project per repo that instinctively sounds way too fine grained unless the projects are very independent and/or well defined by good quality APIs that don't change much. However this part of the answer really is not SO, so go over to Programmers for a good question covering this topic: https://softwareengineering.stackexchange.com/questions/161293/choosing-between-single-or-multiple-projects-in-a-git-repository

Upvotes: 1

Jonah Graham
Jonah Graham

Reputation: 7980

From the Git perspective, in the Git Repositories view, right-click on the repo and choose Import Projects... and then complete the wizard.

Have a look at the Eclipse EGit Wiki for more options and information. Here is the above method demonstrated with screenshots:

Step 1:

In the Git perspective:

git perspective

Step 2:

Right-click on the Git repo and choose Import Projects...

import projects

Step 3:

Complete the wizard:

import multiple projects wizard

Upvotes: 2

Related Questions