How do you get stashed changes back in Git?

Git · History & Undo · updated 2026-08-23

git stash pop — Apply stash

git stash pop re-applies the most recent stash and removes it from the stash list. The stash is created with git stash, and git stash list shows every saved entry if there is more than one.

Related Git shortcuts: History & Undo

ShortcutActionNotes
git logCommit historyShow commit history.
git log --onelineOne-line logShow commits in one-line format.
git diffShow diffShow unstaged changes.
git reset HEAD [file]UnstageUnstage a staged file.
git reset --hard HEAD~1Undo last commitCompletely undo the last commit.
git stashStash changesTemporarily save current changes.
git stash popApply stashRestore stashed changes.
git cherry-pick [hash]Cherry-pickApply a specific commit to current branch.

From the Git reference (24 entries) · all how-to answers