Should I store all projects in one repository or multiple?

前端 未结 11 1082
长情又很酷
长情又很酷 2020-12-02 09:04

I am currently using TortoiseSVN to manage a couple of the projects that I have on the go at the moment. When I first moved everything into source control I wasn\'t really

相关标签:
11条回答
  • 2020-12-02 09:21

    If your projects are independent, it's fine to keep them in separate repositories. If they share components, then put them together.

    0 讨论(0)
  • 2020-12-02 09:23

    My rule of thumb is to consolidate things that are delivered together. In other words, if you might deliver project X and project Y separately, then put them in separate repos.

    Yes, sometimes this means you have a huge repo for a project that contains a huge number of components, but people can operate on sub-trees of a repo and this forces them to think of the "whole project" when they commit changes to the repo.

    0 讨论(0)
  • 2020-12-02 09:29

    If you're going with a separate repository for each project, you might use the External tag to refer to other repositories -thus share code.

    0 讨论(0)
  • 2020-12-02 09:32

    Personally I prefer each project in it's own repository

    0 讨论(0)
  • 2020-12-02 09:35

    As long as each project has /trunk /tags and /branches you're good. Proper continuous integration is the criterion here.

    0 讨论(0)
提交回复
热议问题