Skip to content

Commit edeed06

Browse files
authored
Merge pull request #136 from shfshanyue/master
Add tip: git stash save <message>
2 parents df6de59 + e574325 commit edeed06

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-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

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@
124124
"title": "Saving current state including untracked files",
125125
"tip": "git stash save -u",
126126
"alternatives": ["git stash save --include-untracked"]
127+
}, {
128+
"title": "Saving current state with message",
129+
"tip": "git stash save <message>"
127130
}, {
128131
"title": "Show list of all saved stashes",
129132
"tip": "git stash list"

0 commit comments

Comments
 (0)