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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:59:19+00:00 2026-05-29T06:59:19+00:00

I am working on a large scale Rails project, and the team I am

  • 0

I am working on a large scale Rails project, and the team I am working with is using Github to manage the project. While many changes are worked on locally and then pushed directly to our development branch, we create a branch when we are going to work on a very large change. When the time comes to merge that branch back into develop, I often try to rebase develop back into my feature branch before I merge my feature branch into develop (to prevent overwriting of other people’s work). I find that when I do this, I seem to run into the same merge conflicts twice. I run into a whole list of conflicts while rebasing, then run into the same list of conflicts again while merging. Should I rebase develop into my feature branch before I merge my feature into develop, or should I just merge my feature into develop?

Let’s say my feature branch is called “new_feature”. My process for merging it with the “develop” branch goes like this:

git checkout develop 

git pull (this is set up on our rig to always pull rebase)

git checkout new_feature 

git rebase develop 

(lots of merge conflicts ensue) 

git checkout develop  

git merge -no-ff new_feature 

(same set of merge conflicts again)

It’s as if the timeline changes from my rebase cause my new feature branch to kind of mirror develop all the way back, and then develop conflicts with a psudo-copy of itself.

  • 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-29T06:59:20+00:00Added an answer on May 29, 2026 at 6:59 am

    OK, this is too long for a comment now.

    To paraphrase the manual (git help rebase)

       Assume the following history exists and the current branch is "new_feature":
    
                     A---B---C new_feature
                    /
               D---E---F---G develop
    
    
       From this point, the result of either of the following commands:
    
           git rebase develop
           git rebase develop new_feature
    
       would be:
    
                             A'--B'--C' <new_feature
                            /
               D---E---F---G <develop
    

    Now, if you had conflicts, the actual state after first running rebase will be

                  A'--B'--C'--[local state]
                 /        ^
    D---E---F---G          new_feature
                ^ develop
    

    where [local state] is the conflicted merge you have yet to fix.
    Once you’ve resolved the merge conflicts and added the resolved files to the index, you run git rebase --continue: now your state will be

                  A'--B'--C'' <new_feature
                 /
    D---E---F---G <develop
    

    (where C'' is just C' after fixing conflicts).

    Obviously at this point merging new_feature back onto develop can be fast-forwarded like so:

                  A'--B'--C'' <new_feature  <develop
                 /
    D---E---F---G
    

    but if it isn’t you’ll get this instead

                  A'--B'--C'' <new_feature
                 /          \
    D---E---F---G------------H <develop
    

    Now whichever of these you prefer from a timeline perspective, it isn’t obvious why either would have a problem … unless you never completed the rebase and resolved the conflicts with C'', but I would think git would complain about that.

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

Sidebar

Related Questions

The project that I'm currently working on, is large scale. I'm using email activation
I'm working with csproj files using Powershell to perform large-scale editing of project references.
I am working on a large scale project where a custom (pretty good and
I am working on a very large scale computing library that is using STL
I am working on a large scale project on iOS, and I want to
I am working on a large-scale checkout application for a current project. This checkout
I'm working on a large scale performance critical asp web application with a pretty
I prefer to use OOP in large scale projects like the one I'm working
I'm working with large numbers that I can't have rounded off. Using Lua's standard
I often jump from a file to file, while working a large codebase. I

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.