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 a local repo with reset - Visual Studio Tutorial
From the course: Visual Studio: Source Control with Git and GitHub
Rollback a local repo with reset
- [Instructor] In this reset demo, I'm going to rollback changes in my local repository. So the way I've set this up is I've made a change in TourStops, I added this comment and then I committed that change. And then I made a change in TourStop and I committed that change. And now I've just edited this countries.txt file, and I haven't saved the file yet. Let's do that. And then I'll go and commit that change. Notice I got one change. The other two files have been committed already. All right, click here. And I'll commit to local. I don't want to push, so commit to local. And now I will go back to Solution Explorer, and you'll see all those files have changed. There's no pending changes. Next, we'll go to history and refresh. And I can see there's three changes. First change, second change and third change. Now I want to rollback to this level, so all right click and choose reset, keep changes. And when I…
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)
-
-
-
-
-