1

Im trying to organise the repositories in a heirarchical structure. Im trying to do it in Azure devops. But I found that the default structure is Project/Repositories.

Heirarchical structure

I need to have a repo structure as per the above image. Is there any way to do this?

Does GitHub or Gitlab support this kind of heirarchy?

Any Help is appreciated. Thanks in advance

I tried creating a folder under a Project. But it is not possible.

We can only add multiple projects under it

  • 1
    GitLab does, with [groups and subgroups](https://docs.gitlab.com/ee/user/group/subgroups/). GitHub repos are just a flat list, but you can set up [roles](https://docs.github.com/en/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization) and assign those to different repos to at least restrict read/push/admin/etc. permissions in some sort of hierarchy. I've never used Azure but I assume it has similar options for access and edit permissions. – Zac Anger Dec 23 '22 at 05:56
  • 1
    Azure DevOps nor GitHub support adding drie structure to your repositories, naming conventions are your best option here. – jessehouwing Dec 23 '22 at 07:52
  • 1
    In GitHub you can create a structure of teams and link repositories to the specific teams. – jessehouwing Dec 23 '22 at 07:52

1 Answers1

1

The question has to do with what sense of a "hierarchy" do you want.

If you want the url structure of the repository to be hierarchical, then gitlab will be the only solution, as Zac mentioned, use gitlab's subgroup feature to build the hierarchy you need.

For GitHub and Azure DevOps, they are similar, they don't have such feature.

But if you just want to manage the permission to access these repositories, then all of them can achieve.

Bowman Zhu-MSFT
  • 4,776
  • 1
  • 9
  • 10