DEV Community

Discussion on: How to Git Stash Your Work [the Correct Way]

Collapse
 
smw7156 profile image
shadman

I have couple of stash
stash@{0}
stash@{1}
stash@{2}
stash@{3}

Now I want my next commit to contain the changes of both stash@{1} and stash@{2} .
How can I apply multiple stash (except the top one i.e. stash@{0} ) ?

Collapse
 
smw7156 profile image
shadman

It was simple. Just applying both the stash
git stash apply stash@{1}
git stash apply stash@{2}
Just make sure that you don't have any changes in the same line