Microsoft just added browser based merges. This may get you out of a pickle for small conflicts.
For more complex situations:
You have two options to resolve the conflict, reverse-integrate the changes from the target branch (which creates additional merge commits), or rebase on the target branch (which leaves your history nice and clean).
Merge from target to current branch prior to completing the PR.
You need to clone the repo locally, perform a merge from the target branch to your branch and push those changes up to the repository. VSTS will detect the changes and update the pull request.
Rebase the PR branch to include the latest changes on target
Alternatively, you can clone the repo locally, rebase the PR branch on the latest version of the target branch, solve all issues from the rebase and force-push the changes back to the PR branch. VSTS will detect the changes and update the pull request.
-------o3 PR
/
---------o1-o2 target
Thus rebase o3 onto o2:
-------o3 PR
/
---------o1-o2 target
Then complete the PR (with Fast-forward merge in the case below):
You could do the above technique by @jessiehouwing or use the new plug-in. MicrosoftDevLabs released the link to the plugin to resolve conflicts. The link to plugin is given below https://marketplace.visualstudio.com/items?itemName=ms-devlabs.conflicts-tab
Update
Microsoft just added browser based merges. This may get you out of a pickle for small conflicts.
For more complex situations:
You have two options to resolve the conflict, reverse-integrate the changes from the target branch (which creates additional merge commits), or rebase on the target branch (which leaves your history nice and clean).
Merge from target to current branch prior to completing the PR.
You need to clone the repo locally, perform a merge from the target branch to your branch and push those changes up to the repository. VSTS will detect the changes and update the pull request.
Thus merge
target (o2)
toPR
:Then complete the PR
Rebase the PR branch to include the latest changes on target
Alternatively, you can clone the repo locally, rebase the PR branch on the latest version of the target branch, solve all issues from the rebase and force-push the changes back to the PR branch. VSTS will detect the changes and update the pull request.
Thus rebase
o3
ontoo2
:Then complete the
PR
(with Fast-forward merge in the case below):Merge from branch: master,
Into current branch: dev