From the course: Visual Studio: Source Control with Git and GitHub

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Rollback to prior commit with revert

Rollback to prior commit with revert - Visual Studio Tutorial

From the course: Visual Studio: Source Control with Git and GitHub

Start my 1-month free trial

Rollback to prior commit with revert

- [Narrator] We're going to use the revert command to fix this mistake in Terry's Commit. Remember that she has committed this to shared repository. So we'll use revert to fix this. Right click, choose revert, say yes, and when I refresh I see that it took the information that was in this Commit, moved it to this area, at the head, and it automatically added a message for me, revert fixed typo in Country files. So that tells me that it now contains the information from change to files, and let's see if that's true. So we'll go to Solution Explorer, go to Countries.txt and there's the countries that start with the letter A, and that looks good. So that's the basics of working with Revert.

Contents