From: Philip Oakley Date: Fri, 28 Feb 2014 17:09:08 GMT Subject: Re: [PATCH/RFC] rebase: new convenient option to edit a single commit Message-ID: In-Reply-To: <20140228065802.GB31731@sigill.intra.peff.net> From: "Jeff King" > 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