I have a small patch saved away in my git stash. I\'ve applied it to my working copy using git stash apply. Now, I\'d like to back out those changes by revers
In addition to @Greg Bacon answer, in case binary files were added to the index and were part of the stash using
git stash show -p | git apply --reverse
may result in
error: cannot apply binary patch to '' without full index line
error: : patch does not apply
Adding --binary resolves the issue, but unfortunately haven't figured out why yet.
git stash show -p --binary | git apply --reverse