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)`.
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
439440git 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
444461git stash list
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments