Re: Proper way to abort incorrect cherry-picking?
- From
Jon Seymour <jon.seymour@gmail.com>
- Date
- Apr 29, 2010, 00:07 UTC
- Message-ID
- <s2x2cfc40321004281707x50e59113t9f2ca9aea355ac5@mail.gmail.com>
- In-Reply-To
- <20100428233758.GA1654@progeny.tock>
On Thu, Apr 29, 2010 at 9:37 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 8 quoted lines
> Hi Jon,
>
> Jon Seymour wrote:
>
>> If you use git reset --mixed HEAD@{1} you can reset the index to
>> HEAD@{1} to reflect the pre-merge state.
>
> The HEAD doesn’t advance in a failed merge, right?True, but I understood this issue to be that there were two cherry picks, one of which worked, one of which failed because it was out of order. Hence git reset HEAD@{1} would reset prior to the first successful (but out of order) cherry-pick.
Any way, thanks for the explaining the virtue of git reset --merge.
jon.