Git merge: accept theirs for multiple conflicts

后端 未结 1 971
夕颜
夕颜 2020-12-23 18:57

I\'m trying to merge a git branch (test-development) back into master. There are lots of merge conflicts but I want as many as possible to be resolved via --theirs. Is there

1条回答
  •  暖寄归人
    2020-12-23 19:32

    This will do it if you're mid-merge:

    git merge test-development
    # Automatic merge failed, a bunch of conflicts!
    git checkout --theirs ./path
    git add ./path
    git commit
    

    0 讨论(0)
提交回复
热议问题