From git-stash
docs on show
option (emphasis mine).
Show the changes recorded in the stash entry as a diff between the stashed contents and the commit back when the stash entry was first created.
Is it possible to view the contents of a stash, not as a diff, but rather as raw file contents, in the same manner as git show my-branch:path/to/my/file
would?
Try the command
git show stash@{0}:/path/to/my/file
This shows the contents of the file in file
in stash@{0}
not as a diff but as the full file.
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