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

Rollback a local repo with reset - Visual Studio Tutorial

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

Start my 1-month free trial

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