You stashed your changes, but now you want them back. Do you use pop or apply? 🤔

They function similarly, but they are not the same thing.

apply puts the changes back into place so you can continue your work, but it keeps the stash entry around so you can use it again later.

pop does exactly that, but it also drops the stash from the list.

I usually prefer using pop because that keeps my stash list clean. But I also use apply when I’m unsure if there are any conflicts that need solving, or if I think I’ll need to use those changes in another place again. 😅

Want the deeper dive on git stash? I covered the full workflow over here: Using git stash: pop, apply, and drop

Follow along for more git tips like this!