How do I resolve cherry-pick conflicts using their changes?

后端 未结 1 1356
说谎
说谎 2021-01-29 18:43

My git cherry-pick FOO produced a conflict.

I could go through the conflicting files and delete the lines between <<<<<<<

相关标签:
1条回答
  • 2021-01-29 19:15

    First you should undo your cherry-pick, try to run this

    git cherry-pick --abort
    

    Second, try to make cherry-pick, but in this time you get their changes not yours, so make this:

    git cherry-pick --strategy=recursive -X theirs {Imported_Commit}
    
    0 讨论(0)
提交回复
热议问题