Add stash all

This commit is contained in:
Diogo Lemos 2017-02-24 11:38:44 +00:00
parent c8abe4cc13
commit 3fe8a233c0
2 changed files with 21 additions and 0 deletions

View File

@ -52,6 +52,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Saving current state of unstaged changes to tracked files](#saving-current-state-of-unstaged-changes-to-tracked-files)
* [Saving current state including untracked files](#saving-current-state-including-untracked-files)
* [Saving current state with message](#saving-current-state-with-message)
* [Saving current state of all files (ignored, untracked, and tracked)](#saving-current-state-of-all-files-ignored-untracked-and-tracked)
* [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)
@ -439,6 +440,22 @@ git stash save --include-untracked
git stash save <message>
```
## Saving current state of all files (ignored, untracked, and tracked)
```sh
git stash -a
```
__Alternatives:__
```sh
git stash --all
```
```sh
git stash save --all
```
## Show list of all saved stashes
```sh
git stash list

View File

@ -131,6 +131,10 @@
}, {
"title": "Saving current state with message",
"tip": "git stash save <message>"
}, {
"title": "Saving current state of all files (ignored, untracked, and tracked)",
"tip": "git stash -a",
"alternatives": ["git stash --all", "git stash save --all"]
}, {
"title": "Show list of all saved stashes",
"tip": "git stash list"