git stash push

Save your local modifications to a new stash entry and roll them back to HEAD

Options

NameDescription
-p, --patchInteractively select hunks from the diff between HEAD and the working tree to be stashed
-k, --keep-indexAll changed already added to the index are left intact
-u, --include-untrackedAll untracked files are also stashed and then cleaned up
-a, --allAll ignored and untracked files are also stashed
-q, --quietQuiet, suppress feedback messages
-m, --message <message>Use the given <msg> as the stash message
--pathspec-from-file
--Separates pathsec from options for disambiguation purposes