Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>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</p> <pre><code># 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.. </code></pre> <p>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.</p> <p>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.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload