From: Johannes Schindelin Date: Fri, 11 Jul 2008 18:25:18 GMT Subject: Re: git cherry-pick before archive Message-ID: In-Reply-To: <20080711161158.GD10347@genesis.frugalware.org> Hi, On Fri, 11 Jul 2008, Miklos Vajna wrote: > On Fri, Jul 11, 2008 at 12:09:02PM -0400, Denis Bueno wrote: > > On Fri, Jul 11, 2008 at 11:51, Johannes Schindelin > > wrote: > > > $ git cherry-pick -n > > > $ git archive --format=tar --prefix=pfx/ $(git write-tree) | gzip > prj.tgz > > > $ git reset > > I guess he wanted to write 'git reset --hard' here ;-) He did not ;-) "git reset" resets only the index, which is what I wanted. Anyway, back to Denis' question: I could imagine (haven't tested, thought), that "git revert -n " would undo the "git cherry-pick -n". Please test and report back, Dscho