From the course: Git: Branches, Merges, and Remotes

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Delete stashed changes

Delete stashed changes

From the course: Git: Branches, Merges, and Remotes

Start my 1-month free trial

Delete stashed changes

- [Instructor] In this chapter, we've learned how the stash works. We've put code into the stash. We've learned how to look at a list of what's in the stash. And we've been able to retrieve code from the stash. There's one last housekeeping task we need to look at, which is how to clear the stash. If we take a look at our stash right now, using sit stash list, you can see that I still have one item in there. It's called changed mission title. Now, I have used apply in order to apply those changes, so they also are still in my working directory as well. Our mission is the change that I made. Let's go ahead and stash these changes again, even though we already have them stored here as a stashed item, changed mission title, we're going to do the same thing just so we have more than one item in our stash. So, git stash save, we'll just call this one delete me. Now, hit the up arrow 'til we to get stash list, and now you can see I have two items in my stash, one called delete me and one…

Contents