Merging but overwriting changes in Git

前端 未结 2 659
走了就别回头了
走了就别回头了 2020-12-23 02:02

When I merge a branch in Git to master I often get merge conflicts. Is there a way to merge a branch and just overwrite the stuff in the current branch?

2条回答
  •  悲&欢浪女
    2020-12-23 02:35

    To overwrite your stuff in your branch and take their work, you should make

    git merge -X theirs {remote/branch} --> example:origin/master
    

提交回复
热议问题