Skip to content

Commit 1ccd87d

Browse files
authored
Merge pull request git-tips#136 from shfshanyue/master
Add tip: git stash save <message>
2 parents d81094d + 2786d01 commit 1ccd87d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
5050
* [Git Aliases](#git-aliases)
5151
* [Saving current state of tracked files without commiting](#saving-current-state-of-tracked-files-without-commiting)
5252
* [Saving current state including untracked files](#saving-current-state-including-untracked-files)
53+
* [Saving current state with message](#saving-current-state-with-message)
5354
* [Show list of all saved stashes](#show-list-of-all-saved-stashes)
5455
* [Apply any stash without deleting from the stashed list](#apply-any-stash-without-deleting-from-the-stashed-list)
5556
* [Apply last stashed state and delete it from stashed list](#apply-last-stashed-state-and-delete-it-from-stashed-list)
@@ -414,6 +415,11 @@ __Alternatives:__
414415
git stash save --include-untracked
415416
```
416417

418+
## Saving current state with message
419+
```sh
420+
git stash save <message>
421+
```
422+
417423
## Show list of all saved stashes
418424
```sh
419425
git stash list

0 commit comments

Comments
 (0)