git
cherry_pick_error
ai_generated
true
error: could not apply <hash>... Commit message (cherry-pick conflict)
ID: git/cherry-pick-conflict
88%Fix Rate
90%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 2 | active | — | — | — |
Root Cause
Cherry-pick has conflicts. Target branch diverged from the source branch.
genericWorkarounds
-
95% success Resolve conflicts manually, then: git add <files> && git cherry-pick --continue
git add <files> && git cherry-pick --continue
-
82% success Use -x flag to record the source commit hash in the message
git cherry-pick -x <hash>
Sources: https://git-scm.com/docs/git-cherry-pick#Documentation/git-cherry-pick.txt--x
-
88% success Abort and start over if it gets messy: git cherry-pick --abort
git cherry-pick --abort
Dead Ends
Common approaches that don't work:
-
Use --skip to skip conflicting commits
75% fail
Loses the changes from that commit entirely
-
Abort and merge instead
55% fail
Merge brings all commits — you wanted just specific ones
Error Chain
Frequently confused with: