📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Git & GitHub Stashing

Stashing

4 min read Quiz at the end
Stash work in progress, list stashes, pop or apply them, and create branches from stashes.

Git Stash

# Save work in progress
git stash
git stash push -m "WIP: user auth form"
git stash push --include-untracked  # include new files

# List stashes
git stash list

# Apply
git stash pop             # apply last + delete
git stash apply           # apply last, keep in stash
git stash apply stash@{2} # apply specific stash

# Create branch from stash
git stash branch feature/continue stash@{0}

# Drop / clear
git stash drop stash@{0}
git stash clear
Topic Quiz · 1 questions

Test your understanding before moving on

1. What does git stash pop do?
💡 git stash pop applies the most recent stash and removes it; git stash apply keeps it.