sudo git stash one file code example
Example 1: git stash one file
git stash save -- just_my_file.txt
Example 2: git stash one file
$ git stash -- filename.ext
git stash save -- just_my_file.txt
$ git stash -- filename.ext