Git workflow for custom css files and themes

后端 未结 1 1332
不思量自难忘°
不思量自难忘° 2020-12-17 03:23

I have a web app under source control in git. I have different css files for different customers as well as images and other theme specific things. And also custom reports..

相关标签:
1条回答
  • 2020-12-17 04:07

    Branches are one way to do it, but since Git is a DVCS, you need to deals with the publication aspect as well (which is orthogonal to branching): what to push to another repo and where?.
    Meaning if you start by managing branches for each client, you really need to remember:

    1. to update to branches with the common code (git rebase --interactive) to replay client-specific commits on top of common development commits (which are on the 'dev' branch foir instance).
    2. to push the right branch to the right remote repo in order to publish the right changes.

    For this kind of development structure (one common module, several client-specific modules), I would consider a component approach and use git submodules.

    • one independent repo for all the common code
    • one repo per client for al the css, report and theme files
    • one parent repo per client which would aggregate the right versions of the rights submodules in order to build, and publish the client web app.
    0 讨论(0)
提交回复
热议问题