File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
58
58
* [ Saving current state with message] ( #saving-current-state-with-message )
59
59
* [ Saving current state of all files (ignored, untracked, and tracked)] ( #saving-current-state-of-all-files-ignored-untracked-and-tracked )
60
60
* [ Show list of all saved stashes] ( #show-list-of-all-saved-stashes )
61
+ * [ Show the contents of any stash in patch form] ( #show-the-contents-of-any-stash-in-patch-form )
61
62
* [ Apply any stash without deleting from the stashed list] ( #apply-any-stash-without-deleting-from-the-stashed-list )
62
63
* [ Apply last stashed state and delete it from stashed list] ( #apply-last-stashed-state-and-delete-it-from-stashed-list )
63
64
* [ Delete all stored stashes] ( #delete-all-stored-stashes )
@@ -511,6 +512,11 @@ git stash push --all
511
512
git stash list
512
513
```
513
514
515
+ ## Show the contents of any stash in patch form
516
+ ``` sh
517
+ git stash show -p < stash@{n}>
518
+ ```
519
+
514
520
## Apply any stash without deleting from the stashed list
515
521
``` sh
516
522
git stash apply < stash@{n}>
Original file line number Diff line number Diff line change 152
152
"title" : " Show list of all saved stashes" ,
153
153
"tip" : " git stash list"
154
154
}, {
155
+ "title" : " Show the contents of any stash in patch form" ,
156
+ "tip" : " git stash show -p <stash@{n}>"
157
+ }, {
155
158
"title" : " Apply any stash without deleting from the stashed list" ,
156
159
"tip" : " git stash apply <stash@{n}>"
157
160
}, {
You can’t perform that action at this time.
0 commit comments