mirror of
https://github.com/namibia/tips.git
synced 2025-01-03 14:17:28 +00:00
Add stash all
This commit is contained in:
parent
c8abe4cc13
commit
3fe8a233c0
17
README.md
17
README.md
@ -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 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 including untracked files](#saving-current-state-including-untracked-files)
|
||||||
* [Saving current state with message](#saving-current-state-with-message)
|
* [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)
|
* [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 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)
|
* [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>
|
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
|
## Show list of all saved stashes
|
||||||
```sh
|
```sh
|
||||||
git stash list
|
git stash list
|
||||||
|
@ -131,6 +131,10 @@
|
|||||||
}, {
|
}, {
|
||||||
"title": "Saving current state with message",
|
"title": "Saving current state with message",
|
||||||
"tip": "git stash save <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",
|
"title": "Show list of all saved stashes",
|
||||||
"tip": "git stash list"
|
"tip": "git stash list"
|
||||||
|
Loading…
Reference in New Issue
Block a user