Q:

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.

A:

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.

A:

Selected answer is not correct.  In order to undo a commit you need to select reset, not revert.  Revvert will make a new commit with code contained in previous commit.  Where reset will actually delete the commits after the selected version.

