git stash file

C++
git stash --include-untracked# git stash specific file
git stash push <path>git diff stash^! -- path/to/relevant/file/in/stash.ext perhaps/another/file.ext > my.patch
git apply < my.patchgit checkout stash@{0} -- <filename>
git stash push -m "message" // use for code added in statsh 
git stash list // use for check stash list
git stash apply stash@{index}git stash pop

Source

Also in C++: