mirror of
https://github.com/git-tips/tips.git
synced 2024-09-21 00:01:03 +02:00
Merge pull request #136 from shfshanyue/master
Add tip: git stash save <message>
This commit is contained in:
commit
edeed06cc0
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user