How to abort a cherry-pick?


I ran git cherry-pick <hash> and had merge conflicts. I don't want to resolve the conflicts, I just want to abort the cherry-pick. When doing an actual merge (with git merge) there's the handy git merge --abort. What's the equivalent of cherry-picking?


You can do the following

git cherry-pick --abort

From the git cherry-pick docs


Cancel the operation and return to the pre-sequence state.

How can I specify a branch/tag when adding a Git submodule?

How do I clone all remote branches?