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 8903341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:50:42+00:00 2026-06-15T01:50:42+00:00

I have a situation where which git strategy is suitable to use? Situation :

  • 0

I have a situation where which git strategy is suitable to use?

Situation :

We have one application which has a git repository. In which we follow the branching strategy,

  1. Branch : develop : used by all developers to implement the features

  2. Branch : testing : where the code developed till current gets deployed to test the application.

  3. Branch : production : After approval from testing team we merge testing branch to production & deploy it to production environment.

Problem :

  1. Now we have 3 different installations of the production (site1.mainDomain.com, site2.mainDomain.com,site3.mainDomain.com),
    these 3 installations has different headers (logo, header color) for now.

  2. There can be possibility that site1.mainDomain.com has some set of features that can be developed in future & can be only used for site1.mainDomain.com.

  3. Some future features can be common for site1.mainDomain.com, site2.mainDomain.com but not for site3.mainDomain.com.

  4. Now if there is any issue on production of site1.mainDomain.com & which is the major issue from the base branch, how we are gonna manage this thing.

So for achieving this which git strategy is useful?
I was reading about sub-modules, git sub-tree, git patches.. but little bit confused to make the decision. Please suggest the best possible solution and strategy to follow.

Thanks in advance.
Vijay

  • 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-06-15T01:50:43+00:00Added an answer on June 15, 2026 at 1:50 am

    I strongly recommend to NOT use git to solve the problem. I can tell it from experience, as the project I am working on fell into the trap of needing to maintain two git branches for no good reason. Github Firewall Install (Github:FI, predecesor to Github Enterprise) also had the same problem.

    I suggest to take a look at Feature Flag (Feature Toggle) pattern to solve your issue – http://martinfowler.com/bliki/FeatureToggle.html

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

Sidebar

Related Questions

I have the following situation in git: One stable branch and one unstable branch.
I have a situation which has to be simple to solve, I would guess.
My situation is the following: I have a git Repo A which contains a
SITUATION: I have a python library, which is controlled by git, and bundled with
I have situation in which I read a record from a database. And if
I have a situation in which a managed DLL calls some unmanaged DLL. I
I have a situation in which I need to convert a text data into
I have a situation in which user can single tap a control, which show
I have a situation in which the ideal relationship, I believe, would involve Value
I have a situation in which I am putting the UITableView in editing mode,

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.