This option used to stash the changes in the current working directory away.
Check the current status of files in your project using git status command. Below output showing that one file is modified and 2 files are newly added.
Run git stash in your project. This will current working directory and index state. You can again run git status and you will find that the modified file is missing from the list.
let’s recover your stashed files in your project. First, check the list if stash with there id. Now run “git stash pop” to restore last stashed version.
Again check the status, you will find the modified file is again showing in list.