Re: [PATCH/RFC] rebase: new convenient option to edit a single commit
- From
Philip Oakley <philipoakley@iee.org>
- Date
- Feb 28, 2014, 17:09 UTC
- Message-ID
- <F6E4FBE2B31243C5BA75DB824D74C3DC@PhilipOakley>
- In-Reply-To
- <20140228065802.GB31731@sigill.intra.peff.net>
From: "Jeff King" <peff@peff.net>
Show 9 quoted lines
> I'd expect "-$n" to mean "rebase the last $n commits" (as opposed to > everything not in the upstream). That does not work currently, of > course, but: > > 1. It has the potential to confuse people who read it, since it's > unlike what "-1" means in most of the rest of git. > > 2. It closes the door if we want to support "-$n" in the future. >
Yeah, "rebase the last $n commits" would be a nice touch.
git rebase -i -10 --onto v1.9.0 # rebase the last 10 commits in this branch etc.
Philip