A team member made a pull request using git for visual studio online. It was approved and merged in successfully, however we would like to undo that and revert to the state of the branch prior to the PR.
Locally, I'm aware of a way to do this. It would be to get a version of our master branch, revert to the earlier version in a branch, and commit it like a standard PR. However, is there not a way in the VSTFS online to simply "undo"?
Thanks
Update
My apologies. I didn't clarify that this was for TFS 2015, and apparently that is not available as a feature in 2015.
To do the same in Visual Studio, right-click the commit you want to revert and then select Revert. After you confirm your action and the operation is complete, Visual Studio displays a success message and a new commit appears in the Outgoing section.
You can revert the completed pull request directly in VSTS:
Delete source Branch
button) >>
Revert
Click Create Pull Request in the revert succeeded dialog.
Revert succeeded in creating the new branch Dev-revert-from-master.
Click Create >> Approve >> Complete >> Enable the
checkbox for Delete Dev-revert-from-master after merging
>>
Complete merge
Check the code in Master branch, it should be reverted back.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With