Re: [OCLUG-Tech] git question: how can i drop the n'th last commit?

2016-05-10 Thread Robert P. J. Day
On Tue, 10 May 2016, Richard Guy Briggs wrote: > On 16/05/10, Robert P. J. Day wrote: > > SCENARIO: most recent 5 commits on a clean, linear history branch: > > > > ... X <--- A <--- B <--- C <--- D <--- E (HEAD) > > > > suddenly, i wish i hadn't done A, but want to leave the more > >

Re: [OCLUG-Tech] git question: how can i drop the n'th last commit?

2016-05-10 Thread Richard Guy Briggs
On 16/05/10, Robert P. J. Day wrote: > SCENARIO: most recent 5 commits on a clean, linear history branch: > > ... X <--- A <--- B <--- C <--- D <--- E (HEAD) > > suddenly, i wish i hadn't done A, but want to leave the more recent > commits on that branch (rebased of course). > > pretty

[OCLUG-Tech] git question: how can i drop the n'th last commit?

2016-05-10 Thread Robert P. J. Day
ASIDE: i know of several ways to do this, i'm just wondering if there's a particularly elegant way i haven't thought of. SCENARIO: most recent 5 commits on a clean, linear history branch: ... X <--- A <--- B <--- C <--- D <--- E (HEAD) suddenly, i wish i hadn't done A, but want to