Git workflow for custom css files and themes

断了今生、忘了曾经 提交于 2019-11-29 04:51:02
VonC

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.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!