I know from this answer how to show the diff against a stash.
git stash show -p stash@{1}
But how can I show the diff to a specific file from a stash?
I know from this answer how to show the diff against a stash.
git stash show -p stash@{1}
But how can I show the diff to a specific file from a stash?
You can use the diff command with a path:
git diff stash@{1} -- <path>
Ru following commands:
git stash list
This will return the stash list like
stash@{0}: WIP on registration_branch: c50163e Error handlers added.
stash@{1}: WIP on registration_branch: c50163e Error handlers added.
git diff stash@{0}
It will return git differences for stash@{0}