Introduction
Sometimes you start working on changes but need to switch tasks quickly without losing your progress. Git stash lets you save your unfinished work safely and come back to it later.
When you are halfway through editing files but need to switch to a different branch to fix a bug
When you want to pull updates from the remote repository but have uncommitted changes
When you want to test something quickly without committing your current work
When you want to clean your working directory temporarily without losing your changes
When you want to share your current work with a teammate but it is not ready to commit