git/list[1] front-page[2] threads[3] people[4] search[5] about
 

error: cannot cherry-pick during a revert

From
Mike Hommey <mh@glandium.org>
Date
Aug 28, 2019, 23:25 UTC
Message-ID
<20190828232515.bvghqlwe3i7sie7n@glandium.org>
Hi,
This just happened to me while cherry-pick'ing:

$ git cherry-pick HEAD@{1} error: could not apply 614fe5e629b84... try hint: after resolving the conflicts, mark the corrected paths hint: with 'git add <paths>' or 'git rm <paths>' hint: and commit the result with 'git commit' Recorded preimage for 'taskcluster/ci/build/linux.yml'

(... this is where I fix my conflict ...)

$ git add -u $ git cherry-pick --continue error: cannot cherry-pick during a revert. fatal: cherry-pick failed

So apparently, cherry-pick thinks it was doing a revert when it hit a conflict?

(This is with git 2.23)
Mike
Next: Phillip Wood
Message 1 of 2 in “error: cannot cherry-pick during a revert”
  1. Mike HommeyAug 28, 2019
  2. Phillip WoodAug 29, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.