Introduction
Sometimes you need to save your work temporarily without committing. Git stash lets you do this. You can bring back your saved work with either git stash apply or git stash pop, but they behave a little differently.
When you want to save unfinished changes quickly to switch to another task without committing.
When you want to test something else but keep your current work safe.
When you want to bring back saved changes but keep a copy in stash for later use.
When you want to bring back saved changes and remove them from stash because you no longer need the backup.