Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3986020
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:57:42+00:00 2026-05-20T05:57:42+00:00

I have an app (cms) which structure is like this: BASE: /application/ /public/ themes/

  • 0

I have an app (cms) which structure is like this:

BASE:
    /application/
    /public/
        themes/
           default/
           mobile/

This is a base, central repository for all our projects. Then the projects get their own skin:
(which are based on /default/ theme)

CLONE1:
    /application/
    /public/
        themes/
           default/
           mobile/
           own/
           ...
           own-theme-12/

(this app has 12 custom themes based on the default one).

The whole thing is about maintaining the applications and keeping all the CLONES up to date with the BASE.

Now, we add BASE as remote repo:

(/clone1/)$ git remote add base-repo /path/to/base.git

Then pull for updates when needed:

(/clone1/)$ git pull base-repo develop

When the .php files in /application are modified everything works great. The problem begins when we modify the files in default theme in BASE repo (e.g. typo in reset.css). We need those changes in CLONE1/default theme and all of the CLONEx/own-x/ themes.

Of course some bash script will be needed to tell where to copy and commit the changes, but how to keep the whole thing in sync without merge conflicts?

We use git flow. The default and mobile themes are not in the separate branches by now. Do we need them to be? We don’t use submodules yet.

There are many ways to organize this workflow, but which would you choose as the optimal one?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:57:42+00:00Added an answer on May 20, 2026 at 5:57 am

    You can use git-subtree to help with this sort of problem. Basically, what you’re doing is building a custom app based on an upstream app, and your custom app has two kinds of changes: app fixes and special themes. You want to take the app fixes and send them upstream, but you don’t want to send your special themes upstream.

    If you create two subtrees at the toplevel: one for your upstream app, and one for your themes, you can then split/join them with git-subtree. The themes inherited from the upstream can be symlinked from the app directory into the themes dir. So you get something like this:

        /app/code/*.php
        /app/themes/default/
        /app/themes/mobile/
        /themes/default -> ../app/themes/default
        /themes/mobile -> ../app/themes/mobile
        /themes/own-1/
    

    When you want to send app changes upstream, you do something like

        git subtree split --prefix=app --rejoin
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app with a large ListView which is terribly slow so I'm
I have an app which could benefit from the user being able to choose
We have a CMS which has several thousand text/html files in it. It turns
I have a Website, which is built upon a CMS, written in PHP. And
Here's the setup. I have web site which is essentially a simple CMS. Here
I have just started a simple CMS in Rails 2.3. The application will get
I have a Ruby on Rails app that I built myself, but which needs
I have a simple architecture at the moment which looks a little something like
I have asked this question in Radiant CMS google group, but no one answered
We have an app with an extensive admin section. We got a little trigger

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.