3

I've recently dived into Git and maybe I'm over complicating this but I'm trying to figure out the best workflow for the following:

I have created a 'backbone' or 'base' of sorts for themes similar to 'bootstrap' grid based system, responsive etc. I want to keep that base across all themes and have files ontop that I modify from theme to theme. When the time comes to update the base I update across all themes, without affecting the theme files ontop.

eg.
theme.css   <-- Will change from theme to theme
theme.js    <-- Will change from theme to theme
[base]        <-- Files that will be used across all themes

What's the best way to do this with git? Do I have a single master repo and have multiple branches for the different themes that I'll never merge into the master?

4

1 回答 1

1

最好在分支中管理这些主题。

当基础更改(在 master 上)时,您可以在 master 上重新设置所有主题分支。
请参阅“ Git:如何一次重新设置多个分支(具有相同的基本提交)? ”。

于 2012-11-14T09:32:19.607 回答