File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ git stash drop [-q | --quiet] [<stash>]
1414git stash pop [-- index] [-q | -- quiet] [<stash >]
1515git stash apply [-- index] [-q | -- quiet] [<stash >]
1616git stash branch <branchname > [<stash >]
17- git stash [push [-p | -- patch] [-S | -- staged] [-k | -- [no-]keep-index] [-q | -- quiet]
17+ git stash [push] [-p | -- patch] [-S | -- staged] [-k | -- [no-]keep-index] [-q | -- quiet]
1818 [-u | -- include-untracked] [-a | -- all] [(-m | -- message) <message >]
1919 [-- pathspec-from-file=<file > [-- pathspec-file-nul]]
20- [-- ] [<pathspec >... ]]
20+ [-- ] [<pathspec >... ]
2121git stash save [-p | -- patch] [-S | -- staged] [-k | -- [no-]keep-index] [-q | -- quiet]
2222 [-u | -- include-untracked] [-a | -- all] [<message >]
2323git stash clear
@@ -60,10 +60,8 @@ COMMANDS
6060 the description along with the stashed state.
6161+
6262For quickly making a snapshot, you can omit "push". In this mode,
63- non-option arguments are not allowed to prevent a misspelled
64- subcommand from making an unwanted stash entry. The two exceptions to this
65- are `stash -p` which acts as alias for `stash push -p` and pathspec elements,
66- which are allowed after a double hyphen `--` for disambiguation.
63+ pathspec elements are only allowed after a double hyphen `--`
64+ to prevent a misspelled subcommand from making an unwanted stash entry.
6765
6866`save [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-u | --include-untracked] [-a | --all] [-q | --quiet] [<message>]`::
6967
Original file line number Diff line number Diff line change 5050#define BUILTIN_STASH_STORE_USAGE \
5151 N_("git stash store [(-m | --message) <message>] [-q | --quiet] <commit>")
5252#define BUILTIN_STASH_PUSH_USAGE \
53- N_("git stash [push [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" \
53+ N_("git stash [push] [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" \
5454 " [-u | --include-untracked] [-a | --all] [(-m | --message) <message>]\n" \
5555 " [--pathspec-from-file=<file> [--pathspec-file-nul]]\n" \
56- " [--] [<pathspec>...]] ")
56+ " [--] [<pathspec>...]")
5757#define BUILTIN_STASH_SAVE_USAGE \
5858 N_("git stash save [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" \
5959 " [-u | --include-untracked] [-a | --all] [<message>]")
You can’t perform that action at this time.
0 commit comments