`error: commit 8f3a2c1 is a merge but no -m option was given.` on `git cherry-pick`.
IntermediateTroubleshootingMerge and Rebase Problems
Answer
Likely causes → The commit has two parents and Git does not know which diff to apply.
Diagnose → git show --no-patch --format='%h parents: %p' 8f3a2c1.
Fix → git cherry-pick -m 1 8f3a2c1 applies the changes relative to the first parent (the branch that was merged into). Or cherry-pick the individual commits of the merged branch.
Prevent → Use squash merges so every PR is a single normal commit.
More on Merge and Rebase Problems
Production failed to start, and the file contains `<<<<<<< HEAD` lines that were committed.Beginner`error: you need to resolve your current index first`Beginner`fatal: You have not concluded your merge (MERGE_HEAD exists).`BeginnerRebase stops: `error: could not apply 1a2b3c4... Add retry` and later `No changes - did you forget to use 'git add'?`Intermediate`fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase.`Intermediate`CONFLICT (modify/delete): config/old.yml deleted in HEAD and modified in feature.`Intermediate