git stash commandline code example
Example 1: git stash
# You can always retrieve stashed changes using `git stash`
git stash # To add changes to stash stack
git stash list # Shows list of stashed changes
git stash apply stash@{0} # Retrieve stash
git stash clear # Clear stash list
Example 2: git stash
//to restrict file to add for commit
git stash pathOfFile