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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:35:08+00:00 2026-05-13T19:35:08+00:00

I use git to maintain multiple working copies of my code. The idea is

  • 0

I use git to maintain multiple working copies of my code. The idea is that I can check out any branch, build and run it to see how the branch’s feature x fits in with the current state of the code.

Git’s master branch is the Trunk and the other git branches are features or things I would like to try out. Therefore, my typical usage is updating the master with the latest fixes and then merging master into the individual branches so each of them stays up to date.

This system works well for me, except for the fact that I have to checkout a branch, merge the master and rinse/repeat for the other branches. Given a version control system like git, I don’t see this scaling very well given the fact that I’d be prone to spawning a lot of branches over time.

I’m still a git beginner, so I suspect there may be a mechanism of sorts that git already has that I might be missing. Is there one? If not, how does one commit a change to all branches so they stay up to date on their own?

  • 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-13T19:35:09+00:00Added an answer on May 13, 2026 at 7:35 pm

    One possibility (not tested myself) would be:

    • to establish a bare repo where you can push your master branch.
    • have a post-receive hook (see githooks man page) on that bare repo which will then push master on every “feature” repo you want
    • have a post-receive hook per feature repo to begin:
      • a rebase of your feature branch on top of master (fine if you did not yet pushed your feature branch elsewhere)
      • or a merge of master on your feature branch.

    You will still need to get to your feature repo and check if the rebase or merge is not blocked due to some merge conflicts.

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

Sidebar

Related Questions

I use to git diff to generate patches that can be applied to remote
I have a Magento installation that is using GIT to maintain the code revisions
I'm trying to use git on windows to clone a remote repository. I can
We use git for most of the web applications we build in our shop,
We use git (github) and capistrano (like 99% of the Rails shops out there)
We'd like to use git to maintain system configurations. Because sometimes configuration data exists
I use Git for source control and build with Visual Studio 2008. Mostly I
I'm working with a branch that I need to split up in two branches:
I use git-new-workdir to have two working trees for one git repository. This usually
We use git to manage our code, and just create one tag when release

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.