Merge pull request #136 from shfshanyue/master

Add tip: git stash save <message>
This commit is contained in:
hemanth.hm 2017-02-21 14:24:38 +05:30 committed by GitHub
commit edeed06cc0
2 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Git Aliases](#git-aliases)
* [Saving current state of tracked files without commiting](#saving-current-state-of-tracked-files-without-commiting)
* [Saving current state including untracked files](#saving-current-state-including-untracked-files)
* [Saving current state with message](#saving-current-state-with-message)
* [Show list of all saved stashes](#show-list-of-all-saved-stashes)
* [Apply any stash without deleting from the stashed list](#apply-any-stash-without-deleting-from-the-stashed-list)
* [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:__
git stash save --include-untracked
```
## Saving current state with message
```sh
git stash save <message>
```
## Show list of all saved stashes
```sh
git stash list

View File

@ -124,6 +124,9 @@
"title": "Saving current state including untracked files",
"tip": "git stash save -u",
"alternatives": ["git stash save --include-untracked"]
}, {
"title": "Saving current state with message",
"tip": "git stash save <message>"
}, {
"title": "Show list of all saved stashes",
"tip": "git stash list"