⌘K
Options (3)
-m, --messagebooleanStash current changes with a message, except new (untracked) files
Example:
git stash push {{[-m|--message]}} {{stash_message}}-u, --include-untrackedbooleanStash current changes, including new untracked files
Example:
git stash {{[-u|--include-untracked]}}-p, --patchbooleanInteractively select parts of changed files for stashing
Example:
git stash {{[-p|--patch]}}Examples (8)
Stash current changes with a message, except new (untracked) files
git stash push [-m|--message] stash_messageStash current changes, including new untracked files
git stash [-u|--include-untracked]Interactively select parts of changed files for stashing
git stash [-p|--patch]List all stashes (shows stash name, related branch and message)
git stash listShow the changes as a patch between the stash (default is `stash@{0}`) and the commit back when stash entry was first created
git stash show [-p|--patch] stash@{0}Apply a stash (default is the latest, named `stash@{0}`)
git stash apply optional_stash_name_or_commitDrop or apply a stash (default is `stash@{0}`) and remove it from the stash list if applying doesn't cause conflicts
git stash pop optional_stash_nameDrop all stashes
git stash clearmade by @shridhargupta | data from tldr-pages