git add to stash code example
Example 1: git stash apply item
git stash apply stash@{index}
Example 2: how to revert a git stash
$ git stash show -p stash@{0} | git apply -R
Example 3: git save to stash
git stash save "name to describe stashed content"
Example 4: git stash apply item
git checkout stash@{index} -- #stash particular file
Example 5: git stash
//to restrict file to add for commit
git stash pathOfFile