Re: git cherry-pick before archive
On Fri, Jul 11, 2008 at 12:09:02PM -0400, Denis Bueno <dbueno@gmail.com> wrote:
Show 5 quoted lines
> On Fri, Jul 11, 2008 at 11:51, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> > $ git cherry-pick -n <bla>
> > $ git archive --format=tar --prefix=pfx/ $(git write-tree) | gzip > prj.tgz
> > $ git reset
I guess he wanted to write 'git reset --hard' here ;-)
Show 8 quoted lines
>
> 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 <bla>).
>
> Is there an easy way to invert a patch to undo the change the original
> patch introduced?
git show <commit> | git apply -R?