📦 Stashing

How to list and view stashes in Git

See all saved stashes and their contents.

List all stashes
git stash list

Shows all stashes with their index, branch, and message.

Show stash contents (summary)
git stash show

Shows which files were changed in the most recent stash.

Show stash diff (full)
git stash show -p

Shows the full diff of the most recent stash.

Show a specific stash
git stash show -p stash@{1}

Shows the full diff of a specific stash by index.

← Back to Git Reference