diff --git a/src/services/git/index.ts b/src/services/git/index.ts index aa7bede0..e97e6695 100644 --- a/src/services/git/index.ts +++ b/src/services/git/index.ts @@ -19,7 +19,9 @@ const cherryPickCommit = async (commit: string, count = 0): Promise => { return } try { - const { stdout } = await node.exec(`git cherry-pick ${commit}`) + // cherry-pick pulls commits from another branch + // -X theirs merges and accepts incoming changes over existing changes + const { stdout } = await node.exec(`git cherry-pick -X theirs ${commit}`) if (!stdout) { throw new Error('No cherry-pick output') }