First, the sourcetree above, solve the details of resetting the current branch, the next one of your own code, reset to there, if you go forward, it is a more distant version.
As shown
Second, the details of conflict resolution
After entering, select "Use Other's Version "