Save Work Temporarily in Git

From the Git cheat sheet · Stashing Changes · verified Jul 2026

Save Work Temporarily

Store uncommitted changes for later without committing

bash
# Stash changes
git stash
git stash push -m "description"

# View stashes
git stash list

# Apply stash
git stash apply         # Apply latest
git stash apply stash@{n}  # Apply specific
git stash pop           # Apply and delete

# Delete stash
git stash drop stash@{n}
git stash clear         # Delete all
💡 Stash is a stack - newest on top
⚡ Use stash to quickly switch branches
✅ Pop removes stash after applying
📌 Apply keeps stash for reuse
Back to the full Git cheat sheet