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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:12:59+00:00 2026-06-12T10:12:59+00:00

If I have a master branch. I then checkout a work branch and make

  • 0

If I have a master branch.

I then checkout a work branch and make awesome changes, and some commits.

Then I have to fix something so I go back to master and checkout a branch called fix, fix what I need to do, and merge it into master.

My question is, should I then merge master onto work and continue, or should I continue on work where I was and merge it when I’m done?

I find myself having to go back to all the branches I work on and updating (merging changes to) each branch.

I get the feeling it’s best to merge asap, but then find myself having to continuously update all the branches I work on. Is this unnecessary?

  • 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-12T10:13:00+00:00Added an answer on June 12, 2026 at 10:13 am

    Refer to the always awesome Git Branching Model by Nive:

    enter image description here

    You see, you should merge fix (not master) to the work (aka develop) branch.

    How often should you merge to master? Every stable release, of course.

    Any other doubts? Look at the picture. 😛

    Source: http://nvie.com/posts/a-successful-git-branching-model/

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

Sidebar

Related Questions

Suppose I have my master branch checked out. I've committed some production changes to
I have made several commits in the master branch and then merged them to
I have master branch of the project. Then I want to add a new
I have a simple Git repo with non-branching commits in the master branch. I
I'm using git-svn; I typically create a topic branch, make commits to it, then
I have a master branch and everything is fine in it. Then I create
I have a master branch, and another_branch with twice as many files in it.
I have a 'master' branch and several topic branches. Assume that the master branch
Given I have a master branch and a other branch. In the other branch
Somehow my master and my origin/master branch have diverged. I actually don't want them

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.