Skip to content

Commit 57f7345

Browse files
committed
Merge branch 'tg/stash-doc-cleanup'
The documentation explained what "git stash" does to the working tree (after stashing away the local changes) in terms of "reset --hard", which was exposing an unnecessary implementation detail. * tg/stash-doc-cleanup: Documentation/stash: remove mention of git reset --hard
2 parents 3e23116 + 20a7e06 commit 57f7345

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)