Skip to content

Commit 3fe8a23

Browse files
author
Diogo Lemos
committed
Add stash all
1 parent c8abe4c commit 3fe8a23

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
5252
* [Saving current state of unstaged changes to tracked files](#saving-current-state-of-unstaged-changes-to-tracked-files)
5353
* [Saving current state including untracked files](#saving-current-state-including-untracked-files)
5454
* [Saving current state with message](#saving-current-state-with-message)
55+
* [Saving current state of all files (ignored, untracked, and tracked)](#saving-current-state-of-all-files-ignored-untracked-and-tracked)
5556
* [Show list of all saved stashes](#show-list-of-all-saved-stashes)
5657
* [Apply any stash without deleting from the stashed list](#apply-any-stash-without-deleting-from-the-stashed-list)
5758
* [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
439440
git stash save <message>
440441
```
441442

443+
## Saving current state of all files (ignored, untracked, and tracked)
444+
```sh
445+
git stash -a
446+
```
447+
448+
449+
__Alternatives:__
450+
```sh
451+
git stash --all
452+
```
453+
454+
455+
```sh
456+
git stash save --all
457+
```
458+
442459
## Show list of all saved stashes
443460
```sh
444461
git stash list

tips.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@
131131
}, {
132132
"title": "Saving current state with message",
133133
"tip": "git stash save <message>"
134+
}, {
135+
"title": "Saving current state of all files (ignored, untracked, and tracked)",
136+
"tip": "git stash -a",
137+
"alternatives": ["git stash --all", "git stash save --all"]
134138
}, {
135139
"title": "Show list of all saved stashes",
136140
"tip": "git stash list"

0 commit comments

Comments
 (0)