Stashing Work in Progress
Learn how git stash lets you shelve uncommitted changes so you can switch context quickly and restore your work later.
The Interruption Problem
You are mid-change when an urgent fix is needed on another branch, but your work is not ready to commit. git stash shelves your changes so you can switch cleanly.
What Is the Stash?
The stash is a stack where Git stores your uncommitted changes (both staged and unstaged) and reverts your working directory to a clean state.
All lessons in this course
- Staging, Committing, History
- Undoing Changes Locally
- Branching & Merging Basics
- Stashing Work in Progress