Git Stashing Recovering earlier changes from stash


To get your most recent stash after running git stash, use

 git stash apply

To see a list of your stashes, use

 git stash list

You will get a list that looks something like this

stash@{0}: WIP on master: 67a4e01 Merge tests into develop
stash@{1}: WIP on master: 70f0d95 Add user role to localStorage on user login

Choose a different git stash to restore with the number that shows up for the stash you want

git stash apply stash@{2}