File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
52
52
* [ Saving current state of unstaged changes to tracked files] ( #saving-current-state-of-unstaged-changes-to-tracked-files )
53
53
* [ Saving current state including untracked files] ( #saving-current-state-including-untracked-files )
54
54
* [ 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 )
55
56
* [ Show list of all saved stashes] ( #show-list-of-all-saved-stashes )
56
57
* [ Apply any stash without deleting from the stashed list] ( #apply-any-stash-without-deleting-from-the-stashed-list )
57
58
* [ 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
439
440
git stash save < message>
440
441
```
441
442
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
+
442
459
## Show list of all saved stashes
443
460
``` sh
444
461
git stash list
Original file line number Diff line number Diff line change 131
131
}, {
132
132
"title" : " Saving current state with message" ,
133
133
"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" ]
134
138
}, {
135
139
"title" : " Show list of all saved stashes" ,
136
140
"tip" : " git stash list"
You can’t perform that action at this time.
0 commit comments