Re: git cherry-pick before archive
- From
Denis Bueno <dbueno@gmail.com>
- Date
- Jul 11, 2008, 16:09 UTC
- Message-ID
- <6dbd4d000807110909n1ced22eeraef45af441c20cca@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0807111649290.8950@racer>
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
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?
-- Denis