git how to stash changes code example
Example 1: git stash apply specific stash
git stash apply "stash@{n}"
or
git stash apply n
Example 2: how to stash changes git
$ git stash
Saved working directory and index state WIP on master:
2dfe283 Implement the new login box
HEAD is now at 2dfe283 Implement the new login box
Example 3: see stashed changes git
$ git diff stash@{0} master
Example 4: git stash apply item
git checkout stash@{index} -- <filename> #stash particular file