git stash push
Save your local modifications to a new stash entry and roll them back to HEAD
Options
Name | Description |
---|---|
-p, --patch | Interactively select hunks from the diff between HEAD and the working tree to be stashed |
-k, --keep-index | All changed already added to the index are left intact |
-u, --include-untracked | All untracked files are also stashed and then cleaned up |
-a, --all | All ignored and untracked files are also stashed |
-q, --quiet | Quiet, suppress feedback messages |
-m, --message <message> | Use the given <msg> as the stash message |
--pathspec-from-file | |
-- | Separates pathsec from options for disambiguation purposes |