Thread (10 messages) flat view 10 messages, 3 authors, 2016-06-15

Re: git cherry-pick before archive

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:55

Hi,

On Fri, 11 Jul 2008, Miklos Vajna wrote:
On Fri, Jul 11, 2008 at 12:09:02PM -0400, Denis Bueno [off-list ref] wrote:
quoted
On Fri, Jul 11, 2008 at 11:51, Johannes Schindelin
[off-list ref] wrote:
quoted
$ 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 ;-)
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 <the-same-commit>" would undo the "git 
cherry-pick -n".

Please test and report back,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help