How to Demonstrate a Soft Reset for Web Programming in Git


show more Demonstrating a soft reset provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training show less
please wait ...

Demonstrating a soft reset

In this movie, I want to demonstrate a soft reset. So, here's the commit log. You can see that my most recent commit was reverting this commit that was right before it. What if we wanted to undo our version, that is we wanted to get rid of this? We could revert it and revert the reversion, or what we want to do here is we want to actually rewind back in time to before I made this reversion back to this point here. So, this is the reference we're going to use. We want to rewind the HEAD back to that point so that it records from there going forward. So, what would that look like? Well, the first thing is whenever I start working with moving the HEAD pointer around, I always think it's a good idea to open up a new text file, and let's just grab the most resent commits here, we can grab the first several, no big deal, and let's just take those and paste them in here.

So now we always have these commits to refer to. If we need to get back here, we have that value recorded. Once we rew...

Demonstrating a soft reset
Video duration: 4m 8s 6h 25m Beginner

Viewers:

Demonstrating a soft reset provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training

Subject:
Developer
Software:
Git GitHub
Author:
please wait ...