git stash
Domain: Version Control
🎯 Motivation
git stash temporarily shelves uncommitted changes so you can switch branches or pull updates without losing work. It is a lifesaver when you are mid-edit and need to context-switch quickly.
📋 Concrete Example
You are halfway through a feature when a urgent bug arrives. You run git stash to save your work, fix the bug on main, then git stash pop to resume your feature.
🔗 Analogy
git stash is like putting your current homework in a drawer when the teacher hands you a pop quiz. You can finish the quiz, then pull your homework right back out.