Git · History and recovery

git stash apply vs pop

apply keeps the stash entry; pop applies and removes it.

Syntax
git stash apply / git stash pop

Example

Example
git stash apply stash@{0}
git stash drop stash@{0}

More in this group

git clean git reflog git reset --hard git reset --mixed git reset --soft git restore git revert git stash

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course