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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:43:21+00:00 2026-05-27T08:43:21+00:00

I have several branches of a git project, with the differences primarily being in

  • 0

I have several branches of a git project, with the differences primarily being in configuration files and blobs. I’d like to keep these projects mostly merged and in synch, since developments on one branch need to occur on the other parallel branches as well, but I’m not sure how to go about doing this.

Most git guides and the like I’ve seen don’t really talk about it, and I’m not sure what the best approach is for this sort of problem.

Cherrypicking may be an option, but of course it means someone working on one of those branches loses pretty much the entire history of the various changes. If there’s a way to say “cherrypick everything in this huge project except the files defined in this file” or something, that might still work though. It still seems wrong, somehow.

  • 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-27T08:43:21+00:00Added an answer on May 27, 2026 at 8:43 am

    Sounds like you have one main branch with several sets of configuration files. If you only intend to keep one set of such files in each branch at any point in time, you can maintain one main branch (with all the common files), and commit those config files as a separate commit in each of the other branches. Whenever the main branch gets updated, you will need to rebase the other branches against it, so as to apply their config commits on top of the latest changes.

    main-------update 
          \
           \--branch1 for env1 (commited config for env1)
    

    becomes

    main---update-- 
                   \
                    \-- rebased branch1 for env1 (commited config for env1)
    

    or even

    main---update------------------------------merged with branch1-- 
                   \                        /                       \
                    \-some work in branch1-/                         \-rebased branch1 for env1 (commited config for env1)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have several config files in a project that 3 people are working on.
We have several branches of one project that share about half of the code
I use git to interface with an SVN repository. I have several git branches
I am currently using CVS (not my choice) and have several branches. I'm trying
Sometimes I'm working with several branches at once. Say I have branches called master,
I have two branches with several commits each. On one branch, I can go
I have several old 3.5in floppy disks that I would like to backup. My
We have a non-standard subversion respository that we would like to convert to Git.
Context We use several git repositories with the same workflow, involving two branches, and
I have several Git repositories that all have one branch called 'master.' But what

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.