Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [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 the contents of any stash in patch form](#show-the-contents-of-any-stash-in-patch-form)
* [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)
* [Delete all stored stashes](#delete-all-stored-stashes)
Expand Down Expand Up @@ -510,6 +511,11 @@ git stash push --all
git stash list
```

## Show the contents of any stash in patch form
```sh
git stash show -p <stash@{n}>
```

## Apply any stash without deleting from the stashed list
```sh
git stash apply <stash@{n}>
Expand Down
3 changes: 3 additions & 0 deletions tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
"title": "Show list of all saved stashes",
"tip": "git stash list"
}, {
"title": "Show the contents of any stash in patch form",
"tip": "git stash show -p <stash@{n}>"
}, {
"title": "Apply any stash without deleting from the stashed list",
"tip": "git stash apply <stash@{n}>"
}, {
Expand Down