Edvaldo Silva Edvaldo Silva - 6 months ago 53
Git Question

In Visual Studio 2015 how to reverse/undo a commit in Git?

I have a commit done by a developer in the remote Git repository hosted in VSTS that needs to be rolled back. From Visual Studio, without going to the command prompt or how to revert the commit?

I want to undo the commit through Visual Studio without using a command prompt.

Answer Source

Open the "Changes" tab in Team Explorer. Select "Actions", then "View History" to view the history of the repository. Identify the commit that you want to revert, right-click on it and select "Revert" from the context menu.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download