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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:36:38+00:00 2026-05-24T23:36:38+00:00

I have a several branches in my repository and I’m finding that over time

  • 0

I have a several branches in my repository and I’m finding that over time it’s becoming more difficult to keep them all up to date. I can always be sure that master is up to date because it’s easy to remember and I suppose it’s my SVN mentality still lingering on.

  • master
    • bugfix1
    • bugfix2
    • newfeature
      • experiment

My problem is something like this. I make changes in the bugfix2 branch, I merge the changes in to master once I’ve done my commit, but then I have several other branches out of date. I have to manually merge bugfix2 in to every other branch. As my branch list grows, I think it’s unrealistic to perform all these merge operations.

Is there a command for this or is my workflow wrong?

  • 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-24T23:36:39+00:00Added an answer on May 24, 2026 at 11:36 pm

    The general workflow is to merge from the most specific branch to a less specific branch.
    But for a bug needed to be reported to all other branches, a simple merge to the other branches is enough and can be scripted (even aliased):

    for i in $branches; do
       git checkout $i
       git merge bugfix2
    done
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a coworker that checked in several branches into origin. He cleaned them
Suppose I have a git repository with several branches. I suspect some of the
I have a 'master' branch and several topic branches. Assume that the master branch
I have several Git repositories that all have one branch called 'master.' But what
I have got a repository at github and several branches. The whole repo is
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
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 HTML elements (buttons) that fire the same JQuery AJAX request. When

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.