git stash and commit code example
Example 1: git save to stash
git stash save "name to describe stashed content"
Example 2: git stash
//to restrict file to add for commit
git stash pathOfFile
git stash save "name to describe stashed content"
//to restrict file to add for commit
git stash pathOfFile