How do you get stashed changes back in Git?
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
| Shortcut | Action | Notes |
|---|---|---|
| git log | Commit history | Show commit history. |
| git log --oneline | One-line log | Show commits in one-line format. |
| git diff | Show diff | Show unstaged changes. |
| git reset HEAD [file] | Unstage | Unstage a staged file. |
| git reset --hard HEAD~1 | Undo last commit | Completely undo the last commit. |
| git stash | Stash changes | Temporarily save current changes. |
| git stash pop | Apply stash | Restore stashed changes. |
| git cherry-pick [hash] | Cherry-pick | Apply a specific commit to current branch. |
From the Git reference (24 entries) · all how-to answers