How to return a git pull request in Visual Studio online?

A team member made a pull request using git for an online visual studio. It was approved and merged successfully, however we would like to cancel this and return to the state of the industry before PR.

Locally, I know a way to do this. This would be to get the version of our main branch, return to an earlier version in the branch and commit it as a standard PR. However, is there no way in VSTFS online to simply “undo”?

thank

Update

My apologies. I did not clarify what it was for TFS 2015, and apparently this is not available as a function in 2015.

+4
source share
2 answers

You can return the completed upload request directly to VSTS:

  • Pull: Code → Pull Request →
  • Pull, .
  • ( Delete source Branch) → Revert
  • Revert pull request.
  • .

    Revert succeeded in creating the new branch Dev-revert-from-master.

  • Delete Dev-revert-from-master after merging

, .

enter image description here

+5

VSTFS ""?

, : , PR .

+1

Source: https://habr.com/ru/post/1686158/


All Articles