git stash pop is like apply + drop as well. I think git stash --keep-index keeps everything staged, and stashes unstaged changes. Useful if it's hard to type the pathspec for multiple files, or if you want to stash some changes to a file but not all.
git stash- e.g.git stash .orgit stash src/index.js. Thengit stash applyto apply the stashed changes orgit stash dropto discard them.Is that what you're looking for?
git stash popis like apply + drop as well. I thinkgit stash --keep-indexkeeps everything staged, and stashes unstaged changes. Useful if it's hard to type the pathspec for multiple files, or if you want to stash some changes to a file but not all.Big fan of
git stash pop. Definitely a1 command > 2 commandsscenario.Whoa, TIL. Git's pretty cool, isn't it