Search code examples
gitmergeatlassian-sourcetreemerge-conflict-resolutiongit-merge-conflict

Is there a way to take all changes from one branch during merge conflict in git?


I am using git for version control and sourcetree as the GUI client. Recently I merged a branch into master branch and conflict occur. I am quite sure I want all changes from another branch during conflict. Do I have ways to take all changes from another branch instead of just resolve the conflicts one by one by hand?


Solution

  • As mentioned in this thread, in order to keep the changes from the branch you are merging from, you can select the (not so intuitive) option:

    Resolve Using Mine...
    

    https://answers.atlassian.com/upfiles/ResolveMine.png