X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-stash.txt;h=1c64a02fe576a6bdad2afcbc96391ce0c2d541c4;hb=d91ba8fa88a83ec70588700a56c8a4c1e8beb1be;hp=1cc24cc47e3b9845c9d1006ee58faed1bc731c49;hpb=919cc4d0688cea6b7c0ed8c515f5907fcd85002c;p=git.git diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt index 1cc24cc47..1c64a02fe 100644 --- a/Documentation/git-stash.txt +++ b/Documentation/git-stash.txt @@ -9,10 +9,11 @@ SYNOPSIS -------- [verse] 'git stash' list [] -'git stash' (show | drop | pop ) [] -'git stash' apply [--index] [] +'git stash' show [] +'git stash' drop [-q|--quiet] [] +'git stash' ( pop | apply ) [--index] [-q|--quiet] [] 'git stash' branch [] -'git stash' [save [--keep-index] []] +'git stash' [save [--keep-index] [-q|--quiet] []] 'git stash' clear 'git stash' create @@ -41,7 +42,7 @@ is also possible). OPTIONS ------- -save [--keep-index] []:: +save [--keep-index] [-q|--quiet] []:: Save your local modifications to a new 'stash', and run `git reset --hard` to revert them. This is the default action when no @@ -75,7 +76,7 @@ show []:: it will accept any format known to 'git-diff' (e.g., `git stash show -p stash@\{1}` to view the second most recent stash in patch form). -pop []:: +pop [--index] [-q|--quiet] []:: Remove a single stashed state from the stash list and apply it on top of the current working tree state, i.e., do the inverse @@ -86,16 +87,16 @@ Applying the state can fail with conflicts; in this case, it is not removed from the stash list. You need to resolve the conflicts by hand and call `git stash drop` manually afterwards. + -When no `` is given, `stash@\{0}` is assumed. See also `apply`. - -apply [--index] []:: - - Like `pop`, but do not remove the state from the stash list. -+ If the `--index` option is used, then tries to reinstate not only the working tree's changes, but also the index's ones. However, this can fail, when you have conflicts (which are stored in the index, where you therefore can no longer apply the changes as they were originally). ++ +When no `` is given, `stash@\{0}` is assumed. + +apply [--index] [-q|--quiet] []:: + + Like `pop`, but do not remove the state from the stash list. branch []:: @@ -115,7 +116,7 @@ clear:: Remove all the stashed states. Note that those states will then be subject to pruning, and may be difficult or impossible to recover. -drop []:: +drop [-q|--quiet] []:: Remove a single stashed state from the stash list. When no `` is given, it removes the latest one. i.e. `stash@\{0}`