Skip to content

Commit 20a7e06

Browse files
tgummerergitster
authored andcommitted
Documentation/stash: remove mention of git reset --hard
Don't mention git reset --hard in the documentation for git stash save. It's an implementation detail that doesn't matter to the end user and thus shouldn't be exposed to them. In addition it's not quite true for git stash -p, and will not be true when a filename argument to limit the stash to a few files is introduced. Signed-off-by: Thomas Gummerer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ad36dc8 commit 20a7e06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/git-stash.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ OPTIONS
4747

4848
save [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [<message>]::
4949

50-
Save your local modifications to a new 'stash', and run `git reset
51-
--hard` to revert them. The <message> part is optional and gives
50+
Save your local modifications to a new 'stash' and roll them
51+
back to HEAD (in the working tree and in the index).
52+
The <message> part is optional and gives
5253
the description along with the stashed state. For quickly making
5354
a snapshot, you can omit _both_ "save" and <message>, but giving
5455
only <message> does not trigger this action to prevent a misspelled

0 commit comments

Comments
 (0)