GitCheatSheet.org logo
Home / How To

Show the file modifications saved in the stash

# Show files in the LATEST stash entry (index 0), IGNORING untracked
git stash show

# Show files in the LATEST stash entry (index 0), INCLUDING untracked
git stash show --include-untracked

# Show files in SPECIFIC stash entry (index 1)
git stash show --include-untracked [email protected]{1}

# Show ONLY UNTRACKED files in stash entry (index 1)
git stash show --only-untracked [email protected]{1}

# Show ONLY UNTRACKED files in stash entry (index 1)
### Compatible with older versions of Git
git show [email protected]{1}^3:

Note: older versions of Git do not support the --include-untracked option.