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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:54:31+00:00 2026-05-25T12:54:31+00:00

I have forked rails git://github.com/rails/rails.git at github. My forked repository is at git://github.com/waseem/rails.git .

  • 0

I have forked rails git://github.com/rails/rails.git at github. My forked repository is at git://github.com/waseem/rails.git. I want to test out some patches submitted by other users to rails mainline. Lets say I want to test out code in migration_status branch at git://github.com/joelmoss/rails.git.

Lets say I

master $ git remote add joelmoss git://github.com/joelmoss/rails.git. and

master $ git remote add mainline git://github.com/rails/rails.git.

I have been pulling from rails mainline into my master.

master $ git pull mainline master

According to http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html#testing-patches I should create a local topic branch and pull in changes from joelmoss/migration_status. So I,

master $ git checkout -b migration_status Create a local topic branch.

And when I do:

migration_status $ git pull joelmoss migration_status

I get a large number of conflicts. I also tried migration_status $ git pull --rebase joelmoss migration_status but I still get conflicts.

In the case of pull --rebase, I think (correct if wrong), git is trying to apply my local changes on top of changes fetched from joelmoss/migration_status. Ideally it should do the opposite. To consider this option, I did following.

master $ git fetch joelmoss

master $ git checkout -b joel_migration_status joelmoss/migration_status and

joel_migration_status $ git rebase master it still gave me lots of conflicts.

How do I pull in patches submitted to one of my local topic branches w/o getting conflicts? I can not resolve those conflicts as I do not know much about what code to keep what not to.

  • 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-25T12:54:32+00:00Added an answer on May 25, 2026 at 12:54 pm

    In this case, it looks like joelmoss/migration_status is based off of 3.1.0, which split from mainline/master back in May. So if you merge you’re trying to reconcile 4 months worth of development by everyone, in branches that appear to never have been intended to merge.

    What you want to do is base your local changes on 3.1 as well. That doesn’t guarantee to remove all conflicts, but at least it should be ones you are aware of because it’s code you changed directly.

    git checkout -b master-3-1 master
    git rebase --onto joelmoss/migration_status mainline/master master-3-1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have forked the git repository of a project on Github and made my
I have forked a repository on github some time ago, made a small change
I have forked out a Parent: project to Child: this . Now, I want
I have forked a branch from a repository in GitHub and committed something specific
I have forked a project on GitHub and I want to download only the
This seems like a classic rails situation: I want to have a my index
I have forked an SVN project using Git because I needed to add features
I have a git repository (covering more or less project history) and separate sources
I'm still new to git and github... well, I forked a plugin on github
I have forked a project on github and need to have a set of

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.