Delete stashed changes Git


show more Deleting stashed changes provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training show less
please wait ...

Deleting stashed changes

We've seen how we can add items to the stash, take a look at them while they are in the stash, and retrieve them from the stash. The last step is to be able to delete items that are in the stash without applying them. Now we made some changes to mission.html, we stash those, and then we used git stash apply, so they actually stayed in the stash while they pull them out. So if we do git stash list, you'll see there is still this change to the mission page title in the stash. What we want to do now is delete the stash set of changes.

The way we do that is pretty simple, we just like everything else say git stash followed by the command that we want to do to the stash, git stash drop, and then you want to provide the reference for what you want to drop. So git stash drop that item stash@, then the curly braces with the 0 in the middle. That will just simply drop that one item, comes up and tells us I dropped it. Git stash list now, and it's gone, it's that easy. Le...

Deleting stashed changes
Video duration: 3m 26s 6h 25m Beginner

Viewers:

Deleting stashed changes 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 ...