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

  • SEARCH
  • Home
  • 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 4023072
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:33:14+00:00 2026-05-20T10:33:14+00:00

I have a scenario where the base project consists of java code and web

  • 0

I have a scenario where the base project consists of java code and web site files (jsp/html/javascript, templates, css, images etc).

Variants of this base project are created for the following reasons:

a) white labelling + customization

b) A new project based on this project but additional features (both in java and web files)

Base project
java

  • src/core

web

  • templates

  • css

  • javascript

  • images

Project A (based on the base)
java

  • src/core

  • src/projectA specific folders

web

  • templates

  • css

  • javascript

  • images

  • projectA specific folders

Project B (based on the base)
java

  • src/core

  • src/projectB specific folders

web

  • templates

  • css

  • javascript

  • images

  • projectB specific folders

Important constraints

a) Both projectA and projectB share quite a bit of code from base project

b) In addition to having their own files and code, ProjectA and ProjectB could add, modify or delete files in web/templates, web/css, web/image folders – for customization and white labelling

c) More projects like projectA and projectB could be created in the future

d) When base project is changed, it should be possible to have the changes reflected back in sub-projects

e) Occasionally, changes made in projectA/projectB to common files should be folded back into base project.

Initially, I thought I will have separate git repository for base project and each of Project A, B etc. But keeping particularly the above constraints in mind, It looks to me that both git subtree or submodule approaches do not work(for obvious limitations)

So, I am tending towards having a single repository and using “branching” approach where projectA and projectB will be branches and base will be the “master”. How well does constraint (e) work in this approach ?

Are there better ways of managing this in git ?

  • 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-20T10:33:15+00:00Added an answer on May 20, 2026 at 10:33 am

    Your approach of having a base branch and a branch for each subproject sounds reasonable.

    Then you can checkout base and cherry-pick the commits you need to incorpore from your subproject (constraint e).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scenario where I need to upload a file from one web
I have a scenario where users of my ASP.NET web application submit testimonials consisting
i have code like below. Base is the base class and D1, D2, D3
Have this scenario: public class Base { public string Name; } public Class ClassA
I have a scenario where I have a base class as one entity, then
I have the following scenario: In the base container, I am registering a type.
I have a scenario where I have to check whether user has already opened
I have a scenario. (Windows Forms, C#, .NET) There is a main form which
We have a scenario where we want to display a list of items and
I have a scenario when I start 3..10 threads with ThreadPool. Each thread does

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.