how many projects per repository? - Programming On Unix

Users browsing this thread: 1 Guest(s)
venam
Administrators
(22-02-2021, 10:12 PM)freem Wrote: I wanted to ask a question: what do you think about "mono-repos", aka: one repo for a bunch of projects.
One of the alternatives, which seems to me the more common solution, is to have one repo per project (say, "project-repo").
And the other alternative, which is also quite common, is to have projects divided into sub-projects: repos which depends on other repos, this mostly happens within big projects (say, "split-repo"?).

I think this concept is tied to the version control system in use. This idea of mono-repo or project-specific repo makes sense with git but not with subversion.

In subversion, for example, everything is under a certain path and you clone something on that path, that is not feasible with git as far as I know.
Code:
/projects
/projects/p1
/projects/p2
/projects/p1/sub1
/projects/p1/sub2
You could clone /projects entirely or only /projects/p1/sub1.

When it comes to git, some companies choose to put everything in a single repository, like Google, others don't. I personally prefer a git repo per project so that I don't have to clone everything.


Messages In This Thread
how many projects per repository? - by freem - 22-02-2021, 10:12 PM
RE: how many projects per repository? - by venam - 23-02-2021, 05:49 AM
RE: how many projects per repository? - by jkl - 23-02-2021, 03:15 PM