Retrieve stashed changes Git


show more Retrieving 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 ...

Retrieving stashed changes

We've been taking a look at how we can use git stash to save our changes temporarily. We saw we could put changes in there, and we saw how we could list them, and we saw how we could use show in order to inspect them. Now what we want to do is be able to retrieve those stash changes out of there, essentially do the opposite of git stash save. If we put them in the drawer before, now we want to get them back out of the drawer, and when we do that it's going to bring those changes back into our working directory, whatever that working directory is, whichever branch we're on. And now just as a refresher, remember when I did the stash before I was on the shorten_title branch, now I'm on the master branch.

Git doesn't care. For all it knows this is absolutely what you intended, which is stash the changes, switch branches and then bring them out again. So it doesn't matter which branch you're on, it's going to try to bring them into your working dire...

Retrieving stashed changes
Video duration: 4m 24s 6h 25m Beginner

Viewers:

Retrieving 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 ...