Git Stash List
Predict Output Medium
Question
What does this code print?
Code
git stash
git stash list
# stash@{0}: WIP on main
Hint
stash list shows all stashed changes.
Explanation
git stash saves current changes. git stash list shows all stashes as a stack. stash@{0} is the most recent. Use git stash pop to restore and remove the top stash.
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.