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

  • Home
  • SEARCH
  • 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 6769623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:12:54+00:00 2026-05-26T15:12:54+00:00

Let say we are working on two features: feature A and feature B. Feature

  • 0

Let say we are working on two features: feature A and feature B. Feature B depends on feature A.

We finished feature A and put it up for a codereview before checking it into trunk. While waiting for feedback from co-workers/collaborators, we want to start working on feature B. So we create another folder or another branch with changes for feature A incorporated.

But when a feedback for the codereview on feature A says that we need to change some code, we have to change both the feature A folder/branch and the feature B folder/branch. This is prone to human errors.

Is there any way for git or svn to make sure that any changes on the folder/branch A will also ported to folder/branch B without checking it into trunk or move the changes manually?

  • 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-26T15:12:55+00:00Added an answer on May 26, 2026 at 3:12 pm

    git or svn? is this hypothetical? this question sums up exactly why you’d use git or svn in the first place. yes you can do this. here’s how with git.

    I’ll leave it to you to research rebase v. merge workflows with git, but here’s how my team does this…and we do it all the time…(co = checkout)

    branch featureA 
    #do stuff
    
    co featureA
    #branch off feature a since it's dependent
    branch featureB 
    

    later, you can always update feature B with feature A’s latest changes

    co featureA
    pull --rebase
    co featureB
    pull --rebase
    #update featureB with changes in featureA
    rebase featureA
    #resolve any conflicts
    

    trunk/master is not affected in any way, after your release you can update master with the very latest featureB by checking out master and rebasing off featureB, then pushing the new full-featured master to master. this sort of dev cycle keeps master clean (always ready to deploy) while allowing you dev concurrently on many branches with as many dependencies as necessary. you never have to dupe code changes(if you ever think you do, prolly need to rethink your workflow), but of course you may have to resolve merge conflicts (unavoidable with any divergent code merging).

    co master
    rebase featureB
    push origin master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say that there are two people working on a git branch, they check
I'm working with MySQL databases. To simplify the problem, let's say I have two
I need a TimeSpan that takes into account working hours. Let's say that if
Let's say I'm working on a little batch-processing console app in VB.Net. I want
Let's say I have programmers and artists working on a project. The artists have
I'm working in Visual Studio 2008 using c#. Let's say I have 2 xsd
Environment info: *Windows Vista *PHP 5.2.9-2 I'm working on a project. Let's say it's
Let's say I have two branches named default and newfeature . I have a
I'm working with the HTML5 canvas element. Let's say I have 2 ImageData objects
Let's say you have two products A and B which are both developed, tested

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.