GIT repository layout for server with multiple projects

后端 未结 2 840
感情败类
感情败类 2020-11-30 17:16

One of the things I like about the way I have Subversion set up is that I can have a single main repository with multiple projects. When I want to work on a project I can ch

2条回答
  •  醉酒成梦
    2020-11-30 17:51

    GitSlave allows you to manage several independent repos as one. Each repo can be manipulated by regular git commands, while gitslave allows you to additionally run a command over all repos.

    super-repo
    +- module-a-repo
    +- module-b-repo
    
    gits clone url-super-repo
    gits commit -a -m "msg"
    

    Repo-per-project has advantages with componentization and simplified builds with tools like Maven. Repo-per-project adds protection by limiting the scope of what the developer is changing - in terms of erroneous commits of garbage.

提交回复
热议问题