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 - Visual Studio Tutorial
From the course: Visual Studio: Source Control with Git and GitHub
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
-
-
-
-
-
-
-
-
(Locked)
Change the PowerShell command prompt1m 19s
-
(Locked)
Show the Git help files from the command prompt1m 24s
-
Commit to local: VS2m 52s
-
(Locked)
Push to remote: VS1m 16s
-
(Locked)
Commit and push: VS1m 16s
-
(Locked)
Undo changes3m 6s
-
(Locked)
Show history with Git log: PowerShell2m 19s
-
(Locked)
Show history in Team Explorer1m 53s
-
(Locked)
Compare differences: VS2m 21s
-
(Locked)
When to use revert or reset3m 3s
-
(Locked)
Rollback to prior commit with revert55s
-
(Locked)
Rollback a local repo with reset1m 46s
-
(Locked)
-
-
-
-
-