From: Miklos Vajna Date: Fri, 11 Jul 2008 16:11:58 GMT Subject: Re: git cherry-pick before archive Message-ID: <20080711161158.GD10347@genesis.frugalware.org> In-Reply-To: <6dbd4d000807110909n1ced22eeraef45af441c20cca@mail.gmail.com> 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 ;-) > > Thank you! This is much better. The only thing that could improve it > is by some way to "un-cherry-pick" the applied change (so that after > "git reset" there are no local modifications to the file(s) changed by > cherry-picking ). > > Is there an easy way to invert a patch to undo the change the original > patch introduced? git show | git apply -R?