Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4d5bf4

Browse files
authored
Merge pull request#137 from ShMcK/fix/merge-conflict
closes#130. Merge conflict from cherry-pick
2 parents3d0587a +138918c commitc4d5bf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/services/git/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ const cherryPickCommit = async (commit: string, count = 0): Promise<void> => {
1919
return
2020
}
2121
try{
22-
const{ stdout}=awaitnode.exec(`git cherry-pick${commit}`)
22+
// cherry-pick pulls commits from another branch
23+
// -X theirs merges and accepts incoming changes over existing changes
24+
const{ stdout}=awaitnode.exec(`git cherry-pick -X theirs${commit}`)
2325
if(!stdout){
2426
thrownewError('No cherry-pick output')
2527
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp