How To Use Git Stash
Git stash temporarily saves your changes and stashes them. You usually do it if you quickly need to work on something else without committing your current code.
Stash your work
git stash command takes all your uncommitted changes (both
unstaged) and saves them in a pile.
This is how it looks before…
And this is after…
Pop back your work
At any time, you can pop back your work. You do however need to commit or remove all changes you have made to the document.
git stash pop
And simple as that, our work is back, exactly the same as before.