Re: git rebase to move a batch of patches onto the current branch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Björn
Date: Friday, July 25, 2008 - 1:31 pm

On 2008.07.24 15:57:03 -0400, Avery Pennarun wrote:

For "rebase -i", this should do:

git checkout mybranch
git reset --hard interesting_stuff~5
git rebase -i --onto ORIG_HEAD interesting_stuff~5

Not as nice as the format-patch thing but at least it doesn't drop your
braches' reflog like your version, and it provides "rebase -i"
functionality.

Note that the ORIG_HEAD thing might require a recent git version, IIRC
there were some patches to make rebase correctly handle that.

Björn
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: git rebase to move a batch of patches onto the current ..., Björn, (Fri Jul 25, 1:31 pm)