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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:21:54+00:00 2026-05-11T18:21:54+00:00

I have a set of changes which work perfectly against a certain linux version,

  • 0

I have a set of changes which work perfectly against a certain linux version, say 2.6.25.4.

I have a git tree, and created a tracking branch vanilla-2.6.25.4 from the tag v2.6.25.4. I created a branch from this called my-changes-2.6.25.4, and did all my work.

Now, I would like to rebase my work on top of an arbitrary newer version of Linux. Say 2.6.28.9. What is the optimal git work flow to achieve this?

I know how to create a new branch from 2.6.28.9, but doing something like ‘git merge my-changes-2.6.25.4’ gives all kinds of conflicts from other things that I’m not interested in. This seems broken anyways.

I tried creating a new branch from my working my-changes-2.6.25.4, and doing git rebase 2.6.28.9, assuming this would take my changes from 2.6.25.4 and apply them on top of 2.6.28.9, but this gave me tons of conflicts that weren’t related to anything I’ve changed.

I’m not sure what is the proper way to do this. I’m using the stable linux tree http://www.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git, and I think some of the problems may stem from the fact that the versioned tags, v2.6.x.y aren’t all from the same lineage.

Does anyone know how to do this properly? Extra credit for devising a way to automatically move forward as far as possible through binary search to find the next place where Linux broke my code by changing an interface, but I imagine once I know what I am actually trying to do I can automate it myself.

  • 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-11T18:21:54+00:00Added an answer on May 11, 2026 at 6:21 pm

    Your second approach sounds about right— but how did you invoke rebase? You need to tell it you’re changing which is your base revision. I think you need something like

    # on changes-2.6.25.4
    # make new branch
    git checkout -b changes-2.6.28.9
    # double-check local changes to transport
    git log --pretty=oneline v2.6.25.4..
    # transport changes to be against new base
    git rebase --onto v2.6.28.9 v2.6.25.4
    # should now have the same changes
    git log --pretty=oneline v2.6.28.9..
    

    Another possibility to avoid getting dumped out in the middle of a rebase is to take your list of local changes and manually add them to a new branch based on v2.6.28.9 using the “git cherry-pick” command. Actually this is effectively the same as rebasing, but in a sense leaves you more in control of what you’re doing.

    I think your reasoning as to why this is a problem is correct: v2.6.28.9 is not a descendant of v2.6.25.4- so by default rebase would try to include all the changes in v2.6.26..v2.6.25.4 as well as yours, if you simply did “git rebase v2.6.28.9”. The one-argument rebase will try to get your local changes as “git log $1..HEAD” and then apply those back on top of “$1”- so you can see this only makes sense if the arg to rebase is a branch which has been updated. If you rebase off the same tag as you did before, nothing happens. If you rebase off a different tag, you get other people’s changes mixed in with yours. You need to rebase off one tag onto another.

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

Sidebar

Related Questions

Currently I have subversion set up so that when I make changes in Eclipse
I have form that displays several keywords (standard set of choice lists that changes
I have set up a version control system using TortoiseSVN at my home to
I have an external log file which name changes each session, with the format
I have a set of geographically remote nodes with heterogeneous operating systems which need
Sample page On the sample page I have set div#content { padding-bottom:20px; } which
I have set up a workspace area which represents a blank PDF page where
I have the following SQL statement which was working perfectly until I moved it
I have a set of integers that I would like to change to a
I have the following property public MyType MyProperty {get;set;} I want to change this

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.