Git Stash Purpose
Multiple Choice Medium
Question
What does git stash do?
Hint
stash shelves changes temporarily.
Explanation
git stash temporarily saves uncommitted changes (both staged and unstaged) without committing them. This lets you switch branches or pull changes with a clean working directory. Restore stashed changes with git stash pop (applies and removes) or git stash apply (applies and keeps). Stash is a stack — you can have multiple stashes.
Related Resources
Related Lessons
- Git Stash
Learn git stash.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.