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

Unlock the full course today

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

Retrieve stashed changes

Retrieve stashed changes

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

Start my 1-month free trial

Retrieve stashed changes

- [Instructor] We know how to store stashed changes, we know how to take a look of what's in our stash, now let's see how we retrieve changes from the stash so that we can use them. So in my explore California project, I've already stored some changes, git stash list, will show those changes. Please know that git show, the -p option and then the reference to the stash with @ then the number inside curly braces, and we can see actually the changes being made. So the changes from mission to our mission, now that's in our stash that's not in our code. If we go and we look at the actual project code here you will see that it still says just mission. Let's see how we retrieve that change The first thing you want to do is figure out where you want to use it? I'm already on the shorten title branch but I don't have to be. This stash is available to me in all of my branches, so I can switch to any branch I want but I do want to be on the shorten title branch. So, I'm in the right spot. Once…

Contents