It's time-consuming to read through dozens of stashes, one-by-one, by issuing:
git stash show -p 'stash@{N}' # Where "N" is the stash index
Is there a way to view all stashes at once (in patch form)? Note that I don't want to view all the stashes merged into one big patch because that would prevent me from applying a specific stash, which is what I want to do.
By default, the command shows the diffstat, but it will accept any format known to git diff (e.g., git stash show -p stash@{1} to view the second most recent entry in patch form).
git stash show -p stash@{0} --name-only shows just the names of the files (not the contents) in your first stash. @mrgloom If you want to see the stashed changes for a single file, then something like git diff stash@{0}^! -- file. txt will do it.
All are stored in . git/refs/stash . git stash saves stashes indefinitely, and all of them are listed by git stash list . Please note that dropping or clearing the stash will remove it from the stash list, but you might still have unpruned nodes with the right data lying around.
Is it possible you are looking for the command
git stash list -p
As mentioned in http://git-scm.com/docs/git-stash you can add all options from git log to git stash list...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With